eos icon indicating copy to clipboard operation
eos copied to clipboard

Issue when try to set contract

Open kristieguo opened this issue 8 years ago • 9 comments

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

kristieguo avatar May 10 '18 09:05 kristieguo

What branch and commit are you using?

larryk85 avatar May 11 '18 02:05 larryk85

@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.

kristieguo avatar May 11 '18 03:05 kristieguo

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

kristieguo avatar May 11 '18 03:05 kristieguo

I think that you did not update your contract directly after a new version.

yankunsam avatar May 12 '18 04:05 yankunsam

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.

BinaryFocus avatar May 12 '18 12:05 BinaryFocus

how about to switch dawn-v4.0?

yankunsam avatar May 12 '18 21:05 yankunsam

Have you set the contract for tokencontract to eosio.token?

yankunsam avatar May 13 '18 09:05 yankunsam

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

kristieguo avatar May 13 '18 10:05 kristieguo

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.

jgiszczak avatar May 14 '18 22:05 jgiszczak