Skip to content

Commit

Permalink
Merge pull request #1 from wharfkit/apporc_fix
Browse files Browse the repository at this point in the history
Fix unregistered scatter plugins
  • Loading branch information
aaroncox authored Apr 26, 2024
2 parents b7d5740 + 348b7db commit b011f5f
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 b011f5f

Please sign in to comment.