Issue when using Cosigner with Scatter plugin
DenisCarriere opened this issue · comments
Denis commented
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],
});
}
Aaron Cox commented
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.