update tests

master
lza_menace 2 years ago
parent f23b9abd31
commit b3f795417b

@ -2,7 +2,7 @@
src = 'src' src = 'src'
out = 'out' out = 'out'
libs = ['lib'] libs = ['lib']
gas_reports = ["SendIt"] gas_reports = ["*"]
[rpc_endpoints] [rpc_endpoints]
goerli = "${GOERLI_RPC_URL}" goerli = "${GOERLI_RPC_URL}"

@ -16,7 +16,7 @@ contract SendItTest is Test {
} }
function testBulkTransferSucceeds() public { function testBulkTransferSucceeds() public {
uint256 amt = 10; uint256 amt = 20;
uint256[] memory tokenIndexes = new uint256[](amt); uint256[] memory tokenIndexes = new uint256[](amt);
address[] memory recipients = new address[](amt); address[] memory recipients = new address[](amt);
for (uint256 i; i < amt; i++) { for (uint256 i; i < amt; i++) {
@ -35,6 +35,15 @@ contract SendItTest is Test {
vm.stopPrank(); 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 { // function testUpdateVault() public {
// sendit.updateVault(address(3)); // sendit.updateVault(address(3));
// console.log(address(sendit)); // console.log(address(sendit));

Loading…
Cancel
Save