Skip to content

Commit

Permalink
add sender to revert context
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Sep 24, 2024
1 parent 07843d8 commit 3a274ce
Show file tree
Hide file tree
Showing 79 changed files with 676 additions and 424 deletions.
2 changes: 2 additions & 0 deletions v2/contracts/Revert.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ struct RevertOptions {
}

/// @notice Struct containing revert context passed to onRevert.
/// @param sender Address of account that initiated smart contract call.
/// @param asset Address of asset, empty if it's gas token.
/// @param amount Amount specified with the transaction.
/// @param revertMessage Arbitrary data sent back in onRevert.
struct RevertContext {
address sender;
address asset;
uint64 amount;
bytes revertMessage;
Expand Down
29 changes: 15 additions & 14 deletions v2/pkg/erc20custody.sol/erc20custody.go

Large diffs are not rendered by default.

41 changes: 21 additions & 20 deletions v2/pkg/erc20custody.t.sol/erc20custodytest.go

Large diffs are not rendered by default.

29 changes: 15 additions & 14 deletions v2/pkg/erc20custodyechidnatest.sol/erc20custodyechidnatest.go

Large diffs are not rendered by default.

41 changes: 21 additions & 20 deletions v2/pkg/gatewayevm.sol/gatewayevm.go

Large diffs are not rendered by default.

29 changes: 15 additions & 14 deletions v2/pkg/gatewayevm.t.sol/gatewayevminboundtest.go

Large diffs are not rendered by default.

41 changes: 21 additions & 20 deletions v2/pkg/gatewayevm.t.sol/gatewayevmtest.go

Large diffs are not rendered by default.

41 changes: 21 additions & 20 deletions v2/pkg/gatewayevmechidnatest.sol/gatewayevmechidnatest.go

Large diffs are not rendered by default.

29 changes: 15 additions & 14 deletions v2/pkg/gatewayevmupgrade.t.sol/gatewayevmuupsupgradetest.go

Large diffs are not rendered by default.

41 changes: 21 additions & 20 deletions v2/pkg/gatewayevmupgradetest.sol/gatewayevmupgradetest.go

Large diffs are not rendered by default.

29 changes: 15 additions & 14 deletions v2/pkg/gatewayevmzevm.t.sol/gatewayevmzevmtest.go

Large diffs are not rendered by default.

29 changes: 15 additions & 14 deletions v2/pkg/gatewayzevm.sol/gatewayzevm.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v2/pkg/gatewayzevm.t.sol/gatewayzevminboundtest.go

Large diffs are not rendered by default.

17 changes: 9 additions & 8 deletions v2/pkg/gatewayzevm.t.sol/gatewayzevmoutboundtest.go

Large diffs are not rendered by default.

27 changes: 14 additions & 13 deletions v2/pkg/ierc20custody.sol/ierc20custody.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3a274ce

Please sign in to comment.