bitcoin-sv / sol2scrypt

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

Bug: block and transaction properties #138

Closed xhliu closed 2 years ago

xhliu commented 2 years ago

https://github.com/sCrypt-Inc/sol2scrypt/blob/master/docs/cheatsheet.md

This transpiles, but should not.

--- a/examples/Coin/Coin.sol
+++ b/examples/Coin/Coin.sol
@@ -18,7 +18,7 @@ contract Coin {

     function mint(address receiver, uint amount) external {
         if (msg.sender != minter) return;
-        balances[receiver] += amount;
+        balances[receiver] += msg.gas;
     }