Skip to content

Commit

Permalink
improve: Restore TokensBridged and ExecutedRelayerRefundLeaf event si…
Browse files Browse the repository at this point in the history
…gnatures (#27)

Co-authored-by: nicholaspai <[email protected]>
  • Loading branch information
pxrl and nicholaspai authored Feb 9, 2024
1 parent 446aae6 commit 00b66f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions contracts/SpokePool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,15 @@ abstract contract SpokePool is
uint32 indexed rootBundleId,
uint32 indexed leafId,
address l2TokenAddress,
address[] refundAddresses
address[] refundAddresses,
address caller
);
event TokensBridged(
uint256 amountToReturn,
uint256 indexed chainId,
uint32 indexed leafId,
address indexed l2TokenAddress
address indexed l2TokenAddress,
address caller
);
event EmergencyDeleteRootBundle(uint256 indexed rootBundleId);
event PausedDeposits(bool isPaused);
Expand Down Expand Up @@ -1297,7 +1299,8 @@ abstract contract SpokePool is
rootBundleId,
relayerRefundLeaf.leafId,
relayerRefundLeaf.l2TokenAddress,
relayerRefundLeaf.refundAddresses
relayerRefundLeaf.refundAddresses,
msg.sender
);
}

Expand Down Expand Up @@ -1468,7 +1471,7 @@ abstract contract SpokePool is
if (amountToReturn > 0) {
_bridgeTokensToHubPool(amountToReturn, l2TokenAddress);

emit TokensBridged(amountToReturn, _chainId, leafId, l2TokenAddress);
emit TokensBridged(amountToReturn, _chainId, leafId, l2TokenAddress, msg.sender);
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/SpokePool.ExecuteRootBundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ describe("SpokePool Root Bundle Execution", function () {
.distributeRelayerRefunds(destinationChainId, toBN(1), [], 0, destErc20.address, [])
)
.to.emit(spokePool, "TokensBridged")
.withArgs(toBN(1), destinationChainId, 0, destErc20.address);
.withArgs(toBN(1), destinationChainId, 0, destErc20.address, dataWorker.address);
});
});
describe("amountToReturn = 0", function () {
Expand Down

0 comments on commit 00b66f8

Please sign in to comment.