@@ -11,7 +11,7 @@ contract MyContract {
1111 uint256 forkId;
1212 bytes32 blockHash;
1313
14- constructor (uint256 _forkId ) public {
14+ constructor (uint256 _forkId ) {
1515 forkId = _forkId;
1616 blockHash = blockhash (block .number - 1 );
1717 }
@@ -94,14 +94,14 @@ contract ForkTest is Test {
9494 // test that we can "roll" blocks until a transaction
9595 function testCanRollForkUntilTransaction () public {
9696 // block to run transactions from
97- uint256 block = 16261704 ;
97+ uint256 blockNumber = 16261704 ;
9898
9999 // fork until previous block
100- uint256 fork = vm.createSelectFork ("mainnet " , block - 1 );
100+ uint256 fork = vm.createSelectFork ("mainnet " , blockNumber - 1 );
101101
102102 // block transactions in order: https://beaconcha.in/block/16261704#transactions
103103 // run transactions from current block until tx
104- bytes32 tx = 0x67cbad73764049e228495a3f90144aab4a37cb4b5fd697dffc234aa5ed811ace ;
104+ bytes32 transaction = 0x67cbad73764049e228495a3f90144aab4a37cb4b5fd697dffc234aa5ed811ace ;
105105
106106 // account that sends ether in 2 transaction before tx
107107 address account = 0xAe45a8240147E6179ec7c9f92c5A18F9a97B3fCA ;
@@ -115,7 +115,7 @@ contract ForkTest is Test {
115115 uint256 newBalance = account.balance - transferAmount;
116116
117117 // execute transactions in block until tx
118- vm.rollFork (tx );
118+ vm.rollFork (transaction );
119119
120120 // balance must be less than newBalance due to gas spent
121121 assert (account.balance < newBalance);
@@ -152,7 +152,7 @@ contract ForkTest is Test {
152152 DummyContract dummy = new DummyContract ();
153153
154154 // this will succeed since `dummy` is deployed on the currently active fork
155- string memory msg = dummy.hello ();
155+ string memory message = dummy.hello ();
156156
157157 address dummyAddress = address (dummy);
158158
0 commit comments