Skip to content

Commit

Permalink
Fix build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ermyas committed Sep 13, 2023
1 parent d5bdd44 commit 86071c1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 3 additions & 1 deletion src/interfaces/IMultiMessageReceiver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ interface IMultiMessageReceiver {
event SingleBridgeMsgReceived(
bytes32 indexed msgId, string indexed bridgeName, uint256 nonce, address receiverAdapter
);
event MessageExecuted(bytes32 indexed msgId, address indexed target, uint256 nativeValue, uint256 nonce, bytes callData);
event MessageExecuted(
bytes32 indexed msgId, address indexed target, uint256 nativeValue, uint256 nonce, bytes callData
);

/*/////////////////////////////////////////////////////////////////
EXTERNAL FUNCTIONS
Expand Down
4 changes: 2 additions & 2 deletions test/Setup.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,9 @@ abstract contract Setup is Test {
for (uint256 j; j < logs.length; j++) {
if (logs[j].topics[0] == keccak256("TransactionScheduled(uint256,address,uint256,bytes,uint256)")) {
txId = uint256(logs[j].topics[1]);

finalTarget = abi.decode(bytes.concat(logs[j].topics[2]), (address));
encodedArgs = logs[j].data;
(finalTarget, value, data, eta) = abi.decode(encodedArgs, (address, uint256, bytes, uint256));
(value, data, eta) = abi.decode(encodedArgs, (uint256, bytes, uint256));
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions test/unit-tests/GovernanceTimelock.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import "src/libraries/Error.sol";
import {GovernanceTimelock} from "src/controllers/GovernanceTimelock.sol";

contract GovernanceTimelockTest is Setup {
event TransactionScheduled(uint256 indexed txId, address target, uint256 value, bytes data, uint256 eta);
event TransactionExecuted(uint256 indexed txId, address target, uint256 value, bytes data, uint256 eta);
event TransactionScheduled(uint256 indexed txId, address indexed target, uint256 value, bytes data, uint256 eta);
event TransactionExecuted(uint256 indexed txId, address indexed target, uint256 value, bytes data, uint256 eta);

event ExecutionPeriodUpdated(uint256 oldPeriod, uint256 newPeriod);
event DelayUpdated(uint256 oldDelay, uint256 newDelay);
Expand Down
6 changes: 4 additions & 2 deletions test/unit-tests/MultiMessageReceiver.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ import "src/libraries/Message.sol";
import {MultiMessageReceiver} from "src/MultiMessageReceiver.sol";

contract MultiMessageReceiverTest is Setup {
event ReceiverAdapterUpdated(address receiverAdapter, bool add);
event ReceiverAdapterUpdated(address indexed receiverAdapter, bool add);
event QuorumUpdated(uint64 oldValue, uint64 newValue);
event SingleBridgeMsgReceived(
bytes32 indexed msgId, string indexed bridgeName, uint256 nonce, address receiverAdapter
);
event MessageExecuted(bytes32 indexed msgId, address target, uint256 nativeValue, uint256 nonce, bytes callData);
event MessageExecuted(
bytes32 indexed msgId, address indexed target, uint256 nativeValue, uint256 nonce, bytes callData
);

MultiMessageReceiver receiver;
address wormholeAdapterAddr;
Expand Down
2 changes: 1 addition & 1 deletion test/unit-tests/adapters/BaseSenderAdapter.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "src/libraries/Error.sol";
import {AxelarSenderAdapter} from "src/adapters/axelar/AxelarSenderAdapter.sol";

contract AxelarSenderAdapterTest is Setup {
event ReceiverAdapterUpdated(uint256 dstChainId, address receiverAdapter);
event ReceiverAdapterUpdated(uint256 indexed dstChainId, address indexed receiverAdapter);

// Test base contract with Axelar adapter
AxelarSenderAdapter adapter;
Expand Down

0 comments on commit 86071c1

Please sign in to comment.