Skip to content
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

Banker should use PrevRealm instead of OrigPkgAddr #986

Closed
thehowl opened this issue Jul 21, 2023 · 3 comments
Closed

Banker should use PrevRealm instead of OrigPkgAddr #986

thehowl opened this issue Jul 21, 2023 · 3 comments

Comments

@thehowl
Copy link
Member

thehowl commented Jul 21, 2023

X_bankerSendCoins currently uses OrigPkgAddr to determine which "bank" to access.

We should make BankerTypeOrigSend only accessible to realms being directly called (ie. PrevRealm().IsUser()), and BankerTypeSend scoped to the m.CurrentRealm().Addr() of who created them.

@moul
Copy link
Member

moul commented Jul 27, 2023

Related with #875 (and #393)

@moul moul moved this to 🌟 Wanted for Launch in 🚀 The Launch [DEPRECATED] Sep 5, 2023
@moul moul moved this from 🌟 Wanted for Launch to 🚀 Needed for Launch in 🚀 The Launch [DEPRECATED] Sep 5, 2023
@moul moul added this to the 🚀 main.gno.land milestone Sep 6, 2023
@thehowl thehowl changed the title how should the banker returned by std.GetBanker be namespaced? Banker should use PrevRealm instead of OrigPkgAddr May 7, 2024
@thehowl thehowl self-assigned this May 7, 2024
@thehowl
Copy link
Member Author

thehowl commented May 7, 2024

Updated the issue to match the real problem (understood with a bit of good ol' hindsight)

@thehowl
Copy link
Member Author

thehowl commented May 7, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🚀 Needed for Launch
Development

No branches or pull requests

2 participants