-
Notifications
You must be signed in to change notification settings - Fork 373
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
WIP feat: improve grc20/foo20 APIs #952
Conversation
Signed-off-by: Manfred Touron <[email protected]>
Signed-off-by: Manfred Touron <[email protected]>
Signed-off-by: Manfred Touron <[email protected]>
// expose a safe instance to the endusers. | ||
type AdminToken struct { | ||
type Banker20 struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: Banker20
should have a caller
variable (set to nil by default) for example which when you call GRC20()
that return a IGRC20
. force to use the caller
variable.
This fix when you call from a realm the external method, or the internal method when you get the struct
myfoo20 := foo20.SafeGRC20()
myfoo20.Transfer() // <-- std.PrevRealm could lead to error
Closed in favor of #2551 |
Context: from a live discussion when reviewing #938.
Goals:
Checklists...
Contributors Checklist
BREAKING CHANGE: xxx
message was included in the descriptionMaintainers Checklist
CONTRIBUTING.md
BREAKING CHANGE:
in the body)