Skip to content

Instantly share code, notes, and snippets.

@Earlz
Last active October 24, 2018 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Earlz/97e7a77abe8906aa1ac9576ab75b6339 to your computer and use it in GitHub Desktop.
Save Earlz/97e7a77abe8906aa1ac9576ab75b6339 to your computer and use it in GitHub Desktop.

The contract communication stack shall have the following items pushed onto it (in this order) upon contract termination:

  • Rest of stack (ie, the stack is not necessarily cleared and multiple items may be present)
  • User defined contract exit data (optional. Only present if smart contract code does the push)
  • Gas used, uint64_t (pushed by Qtum)
  • Contract error code (pushed by Qtum)

SCCS ABI Proposal:

Before the termination of a contract, the stack should be cleared of any items that the contract does not wish to return to the calling contract. Each contract should specify their own protocol for what data shall be returned from their contract.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment