Skip to content

Commit ea6f6e8

Browse files
committed
refactor
1 parent 65da84d commit ea6f6e8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/0CTF2022/TctfNftMarket/exploit.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import hashlib
22
import json
3+
import sys
34

4-
from pwn import *
5+
from pwn import remote
56
from web3 import Web3
67

78

@@ -160,4 +161,4 @@ def main():
160161

161162

162163
if __name__ == "__main__":
163-
main()
164+
main()

src/Templates/TemplateFork/Contract.t.sol renamed to src/Templates/TemplateFork/Exploit.t.sol

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
// SPDX-License-Identifier: UNLICENSED
22
pragma solidity ^0.8.13;
33

4-
import "forge-std/Test.sol";
5-
import "./Contract.sol";
4+
import {Test, console} from "forge-std/Test.sol";
5+
import {Contract} from "./Contract.sol";
66

7-
contract ContractTest is Test {
7+
contract ExploitTest is Test {
88
address instanceAddress = 0x445D0FA7FA12A85b30525568DFD09C3002F2ADe5;
99

1010
function _setUp() public {
11-
string memory RPC_GOERLI = vm.envString("RPC_GOERLI");
12-
vm.createSelectFork(RPC_GOERLI, 7335645);
11+
vm.createSelectFork(vm.envString("RPC_GOERLI"), 7335645);
1312
}
1413

1514
function _test() public {

0 commit comments

Comments
 (0)