From 348b7db2717691464e77c0667b64fbfafe3c469d Mon Sep 17 00:00:00 2001 From: apporc Date: Mon, 22 Apr 2024 18:39:53 +0800 Subject: [PATCH] Fix unregistered scatter plugins --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index faa7cb5..d420704 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,9 +14,12 @@ import { } from '@wharfkit/session' import {Api, JsonRpc} from 'eosjs' -import {ScatterAccount, ScatterIdentity, ScatterJS} from 'scatter-ts' +import {ScatterAccount, ScatterEOS, ScatterIdentity, ScatterJS} from 'scatter-ts' export async function getScatter(context): Promise<{account: ScatterAccount; connector: any}> { + // register scatter plugins + ScatterJS.plugins(new ScatterEOS()) + // Setup network const url = new URL(context.chain.url) const protocol = url.protocol.replace(':', '') === 'https' ? 'https' : 'http'