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

Getting the world address #344

Open
dhvanipa opened this issue Dec 13, 2023 · 0 comments
Open

Getting the world address #344

dhvanipa opened this issue Dec 13, 2023 · 0 comments

Comments

@dhvanipa
Copy link
Member

The simulator package is meant to be re-usable across worlds, and same with object code. Thus, both key their entities on the address of the caller. Thus, you can't overwrite other people's entities.

To figure out who the caller is, for the simulator and object code, we can use _msgSender() in the entry point, but then if an internal system call is made, _msgSender() becomes the simulator/object code world. And so we need the FIRST caller to this world.

Our current solution for this is to keep track of callers in our MUD fork, but this requires storing extra information and deleting it on every transaction

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

No branches or pull requests

1 participant