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:
parent
f0fbcc9c31
commit
a4020cb501
|
@ -111,7 +111,7 @@ const useProposalSafetyCheck = () => {
|
|||
})
|
||||
|
||||
return realmConfigWarnings
|
||||
}, [config, instructions, realm?.owner, realmInfo])
|
||||
}, [config, instructions, realmInfo])
|
||||
|
||||
return realmConfigWarnings
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue