Plug wallet Agent Error: Signature verification failed

Hi, I am using Plug’s createActor (window.ic.plug.requestConnect with host to localhost:8080 and all my canister ids as whitelist) to make calls to canisters. My plug is Dev mode enabled with localhost:8080 added to the network list.

but when i’m calling window.ic.plug.createActor then icrc2_approve, it’s throwing the Agent Error: Signature verification failed.

any ideas?

could it be because they’re relying on old @dfinity/agent?

"@dfinity/agent": "0.9.3",
"@dfinity/candid": "0.9.3",
"dfinity/principal": "0.9.3",

if that’s the case, then im gonna create my own agent/actor

Plug implements the signer standards so you can use below libs (signer, agent, transport).

Does you start it on local replica? Try playground. It use provider from mainnet, that not support local replica.

thanks fren i’ll give this a try. i hope the plug team update their tutorial/docs on this.

thanks for the suggestion. maybe i should use playground indeed

confirmed these work. thank you :slight_smile: