From b9a9be350a0e3e4c4d377a04ee9037914dd12c35 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Tue, 23 Nov 2021 14:34:27 +0100 Subject: [PATCH] Simplify signature of TestToken.mint To be compatible with nim-web3, which doesn't support arrays in a method signature. --- contracts/TestToken.sol | 6 ++---- test/Stakes.test.js | 2 +- test/Storage.test.js | 3 ++- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/contracts/TestToken.sol b/contracts/TestToken.sol index a2d1725..b36fc78 100644 --- a/contracts/TestToken.sol +++ b/contracts/TestToken.sol @@ -6,9 +6,7 @@ import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract TestToken is ERC20 { constructor() ERC20("TestToken", "TST") {} - function mint(address[] memory holders, uint amount) public { - for (uint i=0; i