Skip to content

Commit

Permalink
test-caller contract
Browse files Browse the repository at this point in the history
  • Loading branch information
evelinemolnar committed Sep 19, 2024
1 parent 06bc10c commit 43fa514
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions contracts/TestCaller.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

struct CalledData {
uint256 size;
address addr;
address tokenIdentifier;
}

contract TestCaller {
CalledData[] private calledDataParams;

constructor() {}

function upgrade() public {}

function callPayable() public payable {}

function callNonPayable() public {}

function callPayableWithParams(uint256 size, address addr, address tokenIdentifier) public payable {
CalledData memory data = CalledData({ size: size, addr: addr, tokenIdentifier: tokenIdentifier });

calledDataParams.push(data);
}

function getCalledDataParams() public view returns (CalledData[] memory) {
return calledDataParams;
}
}

0 comments on commit 43fa514

Please sign in to comment.