Skip to content

Commit

Permalink
feat: add domain_to_address check
Browse files Browse the repository at this point in the history
  • Loading branch information
Th0rgal committed Jan 3, 2024
1 parent dbfa142 commit f05005c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tests/naming/test_custom_resolver.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ fn test_custom_resolver() {

let domain = array![1, 2, 3, th0rgal].span();

let new_target = contract_address_const::<0x6>();
// let's try the resolving
assert(naming.resolve(domain, 'starknet', array![].span()) == 1 + 2 + 3, 'wrong target');
assert(naming.domain_to_address(domain, array![].span()) == new_target, 'wrong target');
}

0 comments on commit f05005c

Please sign in to comment.