Open alejandrade opened 1 year ago
Code
const [_factoryActor] = useCanister('factory', { mode: 'connected' }); const factoryActor = _factoryActor as unknown as FACTORY_SERVICE; useEffect(() => { init(); }, []); async function init() { const versions = await factoryActor.getRegistrationCost(); setRegistrationCost(versions); }
I checked the principal before it calls and it's my wallet principal but once it reaches the canister, it's the anonymous principal.
Code
I checked the principal before it calls and it's my wallet principal but once it reaches the canister, it's the anonymous principal.