-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(levm): modify transfer timing (#1359)
**Motivation** Previously the value was added to receiver a subbed to sender twice with a delegatecall operation, this PR fixes it. Also, the transfer of the value was done when the transaction was confirmed, disallowing self recursive contracts. **Description** This is done by using a should_transfer_value flag, that performs the value transfer when it is activated, and transferring before the execute and reverting if result is revert. --------- Co-authored-by: ilitteri <[email protected]> Co-authored-by: Ivan Litteri <[email protected]>
- Loading branch information
1 parent
1c32950
commit 94c314c
Showing
3 changed files
with
29 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters