Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-something committed Oct 18, 2022
1 parent f37f8cf commit e75b695
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/JBProjectHandles.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ contract ContractTest is Test {
) public {
vm.assume(projectId != _reverseId);

// No handle set on the previous JBProjectHandle version
vm.mockCall(address(oldHandle), abi.encodeCall(IJBProjectHandles.handleOf, (projectId)), abi.encode(''));

// name.subdomain.subsubdomain.eth is stored as ['subsubdomain', 'subdomain', 'domain']
string[] memory _nameParts = new string[](3);
_nameParts[0] = _subsubdomain;
Expand All @@ -318,6 +321,9 @@ contract ContractTest is Test {
) public {
vm.assume(projectId != _reverseId);

// No handle set on the previous JBProjectHandle version
vm.mockCall(address(oldHandle), abi.encodeCall(IJBProjectHandles.handleOf, (projectId)), abi.encode(''));

string memory reverseId = Strings.toString(_reverseId);
string memory KEY = projectHandle.TEXT_KEY();

Expand Down

0 comments on commit e75b695

Please sign in to comment.