dfinity / examples

Example applications, microservices, and code samples for the Internet Computer
https://dfinity.org
Apache License 2.0
515 stars 329 forks source link

Trouble Get Canister Class Principal in Map-Bucket Example #805

Closed wirapratamaz closed 1 month ago

wirapratamaz commented 4 months ago

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.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.