Fix compile and test bugs in main (#1391)

* Fix for a compile bug in main

* Fix for an integration test against SNS that uses a domain that has changed owner.

* Removed an unnecessary useMemo dependency
This commit is contained in:
Daniel Kelleher 2023-02-09 13:30:57 +01:00 committed by GitHub
parent f0fbcc9c31
commit a4020cb501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 9 deletions

View File

@ -111,7 +111,7 @@ const useProposalSafetyCheck = () => {
})
return realmConfigWarnings
}, [config, instructions, realm?.owner, realmInfo])
}, [config, instructions, realmInfo])
return realmConfigWarnings
}

View File

@ -1,17 +1,11 @@
import { tryParseDomain } from '@tools/validators/pubkey'
describe('Public Key Resolves ', () => {
const domain = 'carlos_0x.sol'
const tokenizedDomain = 'snakeoil.sol'
const pubkey = '9apnHjEQ8enLaPLxP7z9VQTphWE4nWqZcyHJYocQMpSE'
const domain = 'realms.sol'
const pubkey = '33m47vH6Eav6jr5Ry86XjhRft2jRBLDnDgPSHoquXi2Z'
test('domains to publicKey', async () => {
const resolvedKey = await tryParseDomain(domain)
expect(resolvedKey?.toBase58()).toEqual(pubkey)
})
test('tokenized domains to publicKey', async () => {
const resolvedKey = await tryParseDomain(tokenizedDomain)
expect(resolvedKey?.toBase58()).toEqual(pubkey)
})
})