Skip to content

Issue when using Cosigner with Scatter plugin #3

Description

@DenisCarriere

A bit hard to troubleshoot this one, but I am using cosigner + Scatter plugin and throwing object error immediately, no valuable error messages in console.

  • Same issue with TransactPluginResourceProvider
import { Chains } from "@wharfkit/common"
import { SessionKit } from "@wharfkit/session"
import { WebRenderer } from "@wharfkit/web-renderer"
import { WalletPluginScatter } from "@wharfkit/wallet-plugin-scatter"
import { WalletPluginTokenPocket } from "@wharfkit/wallet-plugin-tokenpocket"
import { TransactPluginCosigner } from "@wharfkit/transact-plugin-cosigner";

const cosigner = new TransactPluginCosigner({
    actor: 'cpu.pomelo',
    permission: 'cosign',
    privateKey: 'PVT_K1_...',
    contract: 'cpu.pomelo',
    action: 'noop',
})

export function generateKit() {
    return new SessionKit({
        appName: "work.pomelo",
        chains: [Chains.EOS],
        ui: new WebRenderer(),
        walletPlugins: [
            new WalletPluginTokenPocket(),
            new WalletPluginScatter(),
        ],
    }, {
        transactPlugins: [cosigner],
    });
}
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions