EOSIO / eos

An open source smart contract platform
https://developers.eos.io/manuals/eos
MIT License
11.27k stars 3.6k forks source link

How to get return value on eos blockchain , when I use the eosjs #5394

Closed dksuper closed 6 years ago

dksuper commented 6 years ago

How to get return value on eos blockchain , when I use the eosjs?

Here is my contract: image

and it was already set in my eos private blockchain.

Then I use the eosjs to trigger this contract: image

When I trigger it , I can saw the log , show in my eos private blockchain: image

But why I only get this return value , not "Hello, batman"? image

Did I do something wrong?

I will very appreciate ,that you can give me the advice.

taokayan commented 6 years ago

I think there's no explicit return values. You need to get the transaction id and block number and wait until it become irreversible or dropped by all the BPs.