-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should on-chain packages have Gno addresses? #1522
Comments
Packages are "addressable" by their PkgAddr and have a derived std.Address. There is an ongoing effort to make See this link for more details. I understand your concern about confusion. I would appreciate additional feedback from others who may also consider it an issue or have proposed solutions. Please remember that addresses will not only be limited to accounts with wallets. In the future, we can expect to have a wider range of things that require addresses. |
Description
Packages can have addresses (example). This means they can hold coins issued by the Banker. This introduces a bit of confusion - imagine the following scenario:
std.GetCoins(addr Address)
.From a perspective of someone who is learning and has a classic understanding of how smart contracts/blockchains work, the deployment of the realm (& presumably package) is represented by its instance on-chain - which is identified by its path & unique address.
To clear up this confusion, we should either:
GetCoins(packageAddress)
=>error: cannot get coins from package - packages cannot be coin owners.
The text was updated successfully, but these errors were encountered: