Skip to content

Commit

Permalink
refactor(evm): updates PingPong.onMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
allemanfredi committed Jun 13, 2024
1 parent 1074307 commit b35e7bb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/evm/contracts/test/PingPong.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
pragma solidity ^0.8.20;

import { IJushin } from "../interfaces/IJushin.sol";
import { IAdapter } from "../interfaces/IAdapter.sol";

contract PingPong is IJushin {
uint256 public count;
Expand All @@ -13,7 +14,14 @@ contract PingPong is IJushin {
emit Pong(count);
}

function onMessage(uint256, uint256, address, bytes calldata) external returns (bytes memory) {
function onMessage(
uint256,
uint256,
address,
uint256,
IAdapter[] calldata,
bytes calldata
) external returns (bytes memory) {
count++;
emit Pong(count);
return abi.encode(0);
Expand Down

0 comments on commit b35e7bb

Please sign in to comment.