Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when using Cosigner with Scatter plugin #3

Open
DenisCarriere opened this issue Sep 10, 2023 · 1 comment
Open

Issue when using Cosigner with Scatter plugin #3

DenisCarriere opened this issue Sep 10, 2023 · 1 comment

Comments

@DenisCarriere
Copy link

DenisCarriere commented Sep 10, 2023

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
@aaroncox
Copy link
Member

Which wallet were you signing with, were you actually using Scatter?

I was just testing with Wombat (using the Scatter plugin) and it seemed to work with the cosigner plugin and the configuration you provided.

I'm looking for steps to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants