Skip to content

Working with Actor instead of HttpAgent

Latest
Compare
Choose a tag to compare
@alexeychirkov alexeychirkov released this 06 Sep 08:28
· 3 commits to master since this release

Breaking changes:

DataProvider and LogMessagesDataProvider now has mandatory property createActorFn:CreateActorFn.
It is necessary due to the fact that browser extension wallets (Plug or InfinityWallet for example) now works with Actor, but not with HttpAgent

type CreateActorOptions = { agentOptions?: HttpAgentOptions; actorOptions?: ActorConfig }
type CreateActorFn = <T>(canisterId: string, idlFactory: IDL.InterfaceFactory, options?: CreateActorOptions) => Promise<ActorSubclass<T> | undefined>