Description:
"Collect extra NFTs with flair in the 'Soulbound' quest, just remember to keep an eye on that compiler version!”
Objective:
Gain more than 1 token
Note: You can create POCs using Foundry/Hardhat. Without proper POC, your submissions will not be accepted.
Contract Code:
AmberBill.zip2.7KB
Foundry Setup:
pragma solidity 0.8.13;
import {Test} from "forge-std/Test.sol";
import {console} from "forge-std/Console.sol";
import {SoulBound, ERC721TokenReceiver} from "../src/SoulBound.sol";
contract SoulBoundTest is Test {
SoulBound public soulBound ;
address owner;
address hacker;
function setUp() public {
// Set initial timestamp for foundry
vm.warp(1696832805);
owner = makeAddr("owner");
hacker = makeAddr("hacker");
vm.prank(owner);
soulBound = new SoulBound();
}
function test_Hack() public {
vm.startPrank(hacker, hacker);
//Your Solution
vm.stopPrank();
uint256 nftBalance = soulBound.balanceOf(hacker);
assertGt(nftBalance, 1);
}
}
Solutions:
Coming Soon…..
Author -
Bill @Amber Group