Skip to content

Commit

Permalink
Revert "Revert "feat: add computeCreateAddress helper function in Scr…
Browse files Browse the repository at this point in the history
  • Loading branch information
devanoneth committed Jul 10, 2022
1 parent 2501215 commit 51beac1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/test/Script.t.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.7.0 <0.9.0;

import "../Test.sol";

contract ScriptTest is Test
{
function testGenerateCorrectAddress() external {
address creation = computeCreateAddress(0x6C9FC64A53c1b71FB3f9Af64d1ae3A4931A5f4E9, 14);
assertEq(creation, 0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45);
}
}

0 comments on commit 51beac1

Please sign in to comment.