-
Notifications
You must be signed in to change notification settings - Fork 1
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
is the user creating a contract recorded in the state of the contract? #8
Comments
You add it by hand. |
(it's the |
So I add a field It doesn't really typecheck:
Can I store directly the address of the caller in |
That's the idea! You start with
(no need for an initial value here, you will provide it in the constructor; anyway the initial value would have to be a dummy address to typecheck) Then you can do
or alternatively
the issue with
composes 1) the application of |
Yes OK! top it works except that I just do
|
the fun thing is that I can change the originator - so the access policies change over time:
with this in place one needs to add little to be able to sell irreversibly the "admin rights" of a given contract! Of course you also have to be careful that only the current owner can change the owner field. |
My bad I meant |
got it! |
Or is that a piece of data that one has to add by hand in
C.construct
?The text was updated successfully, but these errors were encountered: