bitcoin-sv / sol2scrypt

Solidity to sCrypt Transplier
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

master task: solidity's guide to sCrypt #190

Closed xhliu closed 2 years ago

xhliu commented 2 years ago
xhliu commented 2 years ago

external function with return -> public function with verifying returned value

function get() external returns (bool) {
        return value;
}

sol -> sCrypt

public function get(SigHashPreimage txPreimage, bool retVal) : {
    require(this.value == retVal);
    require(this.propagateState(txPreimage));
  }
xhliu commented 2 years ago

https://github.com/sCrypt-Inc/article/pull/1