From b3f795417bee2512701a762a728813aa4318fe75 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Thu, 17 Nov 2022 13:59:32 -0800 Subject: [PATCH] update tests --- foundry.toml | 2 +- test/SendIt.t.sol | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/foundry.toml b/foundry.toml index c7dd4a8..4cb5efa 100644 --- a/foundry.toml +++ b/foundry.toml @@ -2,7 +2,7 @@ src = 'src' out = 'out' libs = ['lib'] -gas_reports = ["SendIt"] +gas_reports = ["*"] [rpc_endpoints] goerli = "${GOERLI_RPC_URL}" diff --git a/test/SendIt.t.sol b/test/SendIt.t.sol index 31f23bc..8d59345 100644 --- a/test/SendIt.t.sol +++ b/test/SendIt.t.sol @@ -16,7 +16,7 @@ contract SendItTest is Test { } function testBulkTransferSucceeds() public { - uint256 amt = 10; + uint256 amt = 20; uint256[] memory tokenIndexes = new uint256[](amt); address[] memory recipients = new address[](amt); for (uint256 i; i < amt; i++) { @@ -35,6 +35,15 @@ contract SendItTest is Test { vm.stopPrank(); } + function testSingleTransfer() public { + nft.mint(address(5), 20); + vm.startPrank(address(5)); + for (uint256 i; i < 20; i++) { + nft.safeTransferFrom(address(5), address(1), i + 1); + } + vm.stopPrank(); + } + // function testUpdateVault() public { // sendit.updateVault(address(3)); // console.log(address(sendit));