Skip to content

Commit

Permalink
Fix unregistered scatter plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
apporc committed Apr 22, 2024
1 parent b7d5740 commit 348b7db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 348b7db

Please sign in to comment.