4

The code here returns value from Contract.call() as:

let _result, storage = Contract.call storage.x transfer storage () in

What are the values stored in _result and storage?

Note: I couldn't compile this in the online liquidity editor.

9

This is an obsolete example. Contract calls do not return values anymore (it should not be in the repo). Have a look here instead (contract calls create operations that are executed sequentially after the calling contract execution terminates, note that the operations must be returned in order at the end).

1
  • Can you give some detail on "must be returned in order at the end"? Apr 12 '19 at 18:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.