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

Create Safe classes #3

Open
Swader opened this issue Jan 11, 2021 · 0 comments
Open

Create Safe classes #3

Swader opened this issue Jan 11, 2021 · 0 comments

Comments

@Swader
Copy link
Contributor

Swader commented Jan 11, 2021

Classes right now are just data objects with some decoration. Ideally, they would be able to take the current consolidated state, and throw errors if an illegal op is attempted.

const c = new Consolidator( /** hydrated adapter **/ );
c->consolidate();
const myNFT = new SafeNFT(data, c);
myNFT->send(myAddress, "//Bob"); // Throw New Error("Unable to send NFT, sender does not own it");
Yuripetusko added a commit that referenced this issue Mar 17, 2021
Yuripetusko pushed a commit that referenced this issue Sep 28, 2022
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