@@ -31,12 +31,6 @@ contract CraftingTest is Test {
3131 address public proxyAddr;
3232
3333 function setUp () public {
34- console.log ("\nAddresses: " );
35- console.log ("-- imtbl: " , imtbl);
36- console.log ("-- gameStudio: " , gameStudio);
37- console.log ("-- playerOne: " , playerOne);
38- console.log ("-- signingAuthority: " , signingAuthority);
39-
4034 DeployOperatorAllowlist deployScript = new DeployOperatorAllowlist ();
4135 proxyAddr = deployScript.run (imtbl, imtbl, imtbl);
4236 operatorAllowlist = OperatorAllowlistUpgradeable (proxyAddr);
@@ -102,36 +96,6 @@ contract CraftingTest is Test {
10296 assertTrue (multicaller.isFunctionPermitted (address (game1155), game1155.burnBatch.selector ));
10397
10498 sigUtils = new SigUtils ("multicaller " , "1 " , address (multicaller));
105-
106- console.log ("\nContracts: " );
107- console.log ("-- game1155: " , address (game1155));
108- console.log ("-- game721: " , address (game721));
109- console.log ("-- multicaller: " , address (multicaller));
110- }
111-
112- function testMintViaMulticaller () public {
113- bytes32 referenceID = keccak256 ("testMintViaMulticaller:1 " );
114-
115- address [] memory targets = new address [](1 );
116- targets[0 ] = address (game721);
117-
118- bytes [] memory data = new bytes [](1 );
119- data[0 ] = abi.encodeWithSignature ("safeMint(address,uint256) " , playerOne, 1 );
120-
121- uint256 deadline = block .timestamp + 10 ;
122-
123- // Construct signature
124- bytes32 structHash = sigUtils.getTypedDataHash (referenceID, targets, data, deadline);
125-
126- vm.startPrank (signingAuthority);
127- (uint8 v , bytes32 r , bytes32 s ) = vm.sign (signingAuthorityPrivateKey, structHash);
128- bytes memory signature = abi.encodePacked (r, s, v);
129- vm.stopPrank ();
130-
131- vm.prank (playerOne);
132- multicaller.execute (signingAuthority, referenceID, targets, data, deadline, signature);
133-
134- assertTrue (game721.balanceOf (playerOne) == 1 );
13599 }
136100
137101 function testCraft () public {
0 commit comments