solang icon indicating copy to clipboard operation
solang copied to clipboard

Polkadot: If all messages are nonpayble the dispatcher can do a single value transfer check

Open xermicus opened this issue 2 years ago • 0 comments

   I noticed that the dispatch code no longer has a special case where if all functions are non-payable, then there is a single value transfer check which is both less code and less gas used in the error case. This could be utilized in the constructor case too.

Originally posted by @seanyoung in https://github.com/hyperledger/solang/pull/1460#pullrequestreview-1547059929

As pointed out. The emit version worked like that. It would spare contract code.

xermicus avatar Jul 26 '23 16:07 xermicus