-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/native token #52
Conversation
}, | ||
syn::ReturnType::Type(_, _) => quote! { | ||
use odra::types::CLTyped; | ||
#args | ||
odra::call_contract(&self.address, #entrypoint_name, &args) | ||
odra::call_contract(&self.address, #entrypoint_name, &args, self.attached_value) |
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.
Shouldn't you set self.attached_value
to None
after those call_contract
calls?
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.
I guess I should, good catch.
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.
But the thing is, it implies all the functions must be mutable. If so, a user has to define a contract ref as mutable but is not too intuitive.
* move balances to storage * revert balances along with state * remove Account struct * add Balance struct * add Callstack and CallstackElement * Remove Contract struct
See #36