examples icon indicating copy to clipboard operation
examples copied to clipboard

Trouble Get Canister Class Principal in Map-Bucket Example

Open wirapratamaz opened this issue 1 year ago • 0 comments

I'm encountering difficulties retrieving the Principal of a Canister Class deployed within a main Canister, particularly in the context of the Map-Bucket example provided in the repository (https://github.com/dfinity/examples/blob/master/motoko/classes/src/map/Map.mo) Despite attempts such as using Principal.fromActor(bucket[i]), I haven't been successful. Could someone please advise on how to obtain a Bucket's principal without needing to implement the method getPrincipal() inside Bucket? Any insights or alternative approaches to address this issue would be invaluable.

wirapratamaz avatar Mar 28 '24 01:03 wirapratamaz