6/16/2023 0 Comments Neon wallet update 0.2.2Environment values change unexpectedlyĪt least two important environment opcodes will return different values: CALLER (ie. Unfortunately, there are two major issues with the use of the CALL opcode for calling functions within the contract: 1. I admit that I find this to be quite an elegant use of the EVM for safety. The benefit of using CALL to access code in the same contract is to create a new execution context, with no risk of side effects from memory access. Unfortunately it will result in developers using anti-patterns to save on gas, or access msg.sender in a function call. In order to call a within the same contract function, Vyper uses the CALL opcode, which send a new message to call functions within the same contract.
0 Comments
Leave a Reply. |