Psychedelic / plug

Plug is a browser extension for users of the Internet Computer that allows you to access your ICP, Cycles, and other tokens as well as log into IC apps with one click.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: This app tried to connect to a canister on your behalf without the proper permissions

honopu opened this issue · comments

1. window.ic.plug.requestConnect();
2. window.ic.plug.createAgent({ whitelist: ["rd6wb-lyaaa-aaaaj-acvla-cai"],  host: "https://ic0.app" })
3. window.ic.plug.createActor({ canisterId: xxxx,  interfaceFactory: xxx });

Then call transfer method and throw error:
This app tried to connect to a canister (rd6wb-lyaaa-aaaaj-acvla-cai) on your behalf without the proper permissions. Please contact this project’s developers and share the error with them so they can fix it.
So the whitelist passed by createAgent is not working right now?

image
image

I have exactly the same problem since yesterday. If you know how to solve this problem please let me know!

I have exactly the same problem since yesterday. If you know how to solve this problem please let me know!

You can use window.ic.plug.requestConnect({ whitelist: ["all your canister ids"] })

Hi! This was fixed in the release 0.5.4.1 https://github.com/Psychedelic/plug/releases/tag/V0.5.4.1 closing the issue :D