fix: remove instanceof checks

This commit is contained in:
Justin Starry
2020-07-31 01:48:25 +08:00
committed by Michael Vines
parent 31ea69f278
commit d0f4b24481
5 changed files with 29 additions and 39 deletions

View File

@ -103,14 +103,6 @@ test('equals', () => {
expect(arrayKey.equals(base56Key)).toBe(true);
});
test('isPublicKey', () => {
const key = new PublicKey(
'0x100000000000000000000000000000000000000000000000000000000000000',
);
expect(PublicKey.isPublicKey(key)).toBe(true);
expect(PublicKey.isPublicKey({})).toBe(false);
});
test('toBase58', () => {
const key = new PublicKey(
'0x300000000000000000000000000000000000000000000000000000000000000',