Issue when try to set contract
Hi, when I try to set eosio.bios contract, the following error occurs, how to solve this? Thanks.
➜ cleos git:(master) ✗ ./cleos set contract eosio ../../contracts/eosio.bios -p eosio Reading WAST/WASM from ../../contracts/eosio.bios/eosio.bios.wasm... Using already assembled WASM... Publishing contract... Error 3030000: transaction validation exception Ensure that your transaction satisfy the contract's constraint! Error Details: !"unresolvable": env.current_time
What branch and commit are you using?
@larryk85 At first I was on "master" branch, everything was fine. Then I know the team is actively working on the "slim" branch and I want to use the most updated RPC API so I switched to "slim" branch and build locally, but I wasn't able to start the local node and generate the blocks. I figured maybe "slim" branch is not stable so I switched back to "master" branch, then I got this error.
I just pulled from the "master" branch and build locally, this problem still exists, the commit is:
commit 66fb57fa26e4176bdd473175d58d63049576db55 (HEAD -> master, origin/master, origin/HEAD)
Author: Greg Lee <[email protected]>
Date: Thu May 10 17:07:13 2018 -0400
Added StackExchange
I think that you did not update your contract directly after a new version.
I'm having the same problem. Clean install, all I've done is create an account and when trying to install any contract I get this error. Even the hello contract returns the same error.
how about to switch dawn-v4.0?
Have you set the contract for tokencontract to eosio.token?
After building dawn 4.0 locally, I don't have this problem anymore, but I got a warning after setting the eosio.token, not sure if it is normal. The warning is: transaction executed locally, but may not be confirmed by the network yet.
$ ./cleos set contract eosio ../../contracts/eosio.bios -p eosio
Reading WAST/WASM from ../../contracts/eosio.bios/eosio.bios.wasm...
Using already assembled WASM...
Publishing contract...
executed transaction: 0d2e92cb297df91d392353d6f3a374a5cc98a1d40d382ebd50968edc38a95ca4 3344 bytes 3371 us
# eosio <= eosio::setcode {"account":"eosio","vmtype":0,"vmversion":0,"code":"0061736d01000000015c1160037f7e7f0060057f7e7e7e7e...
# eosio <= eosio::setabi {"account":"eosio","abi":{"types":[],"structs":[{"name":"set_account_limits","base":"","fields":[{"n...
warning: transaction executed locally, but may not be confirmed by the network yet
The transaction executed locally warning is normal and applies to all transactions. Successfully submitting a transaction is no guarantee the transaction will be executed. If the block producers are heavily loaded at the time, the transaction may be dropped.