bitcoin-sv / sol2scrypt

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

bug: msg.value #191

Closed xhliu closed 2 years ago

xhliu commented 2 years ago

msg.value is not the money held by the contract like the scrypt equivalent, but the value bringed by the user when he interact with the contract (so I guess you want to transpile to X, and ensure the next output have value Util.value(txpreimage) + X)