Skip to content

Commit

Permalink
refactor: rename fields in InputAdded event
Browse files Browse the repository at this point in the history
  • Loading branch information
ZzzzHui committed Oct 9, 2023
1 parent e795739 commit e45e4a2
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions onchain/rollups/contracts/inputs/IInputBox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ pragma solidity ^0.8.8;
interface IInputBox {
/// @notice Emitted when an input is added to a DApp's input box.
/// @param dapp The address of the DApp
/// @param inputIndex The index of the input in the input box
/// @param index The index of the input in the input box
/// @param sender The address that sent the input
/// @param input The input payload
/// @param payload The input payload
/// @dev MUST be triggered on a successful call to `addInput`.
event InputAdded(
address indexed dapp,
uint256 indexed inputIndex,
uint256 indexed index,
address sender,
bytes input
bytes payload
);

/// @notice Add an input to a DApp's input box.
Expand Down
4 changes: 2 additions & 2 deletions onchain/rollups/test/foundry/inputs/InputBox.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ contract InputBoxTest is Test {

event InputAdded(
address indexed dapp,
uint256 indexed inputIndex,
uint256 indexed index,
address sender,
bytes input
bytes payload
);

function setUp() public {
Expand Down
4 changes: 2 additions & 2 deletions onchain/rollups/test/foundry/portals/ERC20Portal.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ contract ERC20PortalTest is Test {

event InputAdded(
address indexed dapp,
uint256 indexed inputIndex,
uint256 indexed index,
address sender,
bytes input
bytes payload
);
event WatchedTransfer(
address from,
Expand Down
4 changes: 2 additions & 2 deletions onchain/rollups/test/foundry/portals/ERC721Portal.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ contract ERC721PortalTest is Test {

event InputAdded(
address indexed dapp,
uint256 indexed inputIndex,
uint256 indexed index,
address sender,
bytes input
bytes payload
);
event Transfer(
address indexed from,
Expand Down
4 changes: 2 additions & 2 deletions onchain/rollups/test/foundry/portals/EtherPortal.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ contract EtherPortalTest is Test {

event InputAdded(
address indexed dapp,
uint256 indexed inputIndex,
uint256 indexed index,
address sender,
bytes input
bytes payload
);
event WatchedFallback(
address sender,
Expand Down
4 changes: 2 additions & 2 deletions onchain/rollups/test/foundry/relays/DAppAddressRelay.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ contract DAppAddressRelayTest is Test {

event InputAdded(
address indexed dapp,
uint256 indexed inputIndex,
uint256 indexed index,
address sender,
bytes input
bytes payload
);

function setUp() public {
Expand Down

0 comments on commit e45e4a2

Please sign in to comment.