-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update Executor Contracts #7
base: main
Are you sure you want to change the base?
Conversation
|
||
assert(Txn.GroupIndex == 1) | ||
|
||
if Gtxn[0].ApplicationArgs[0] == "validate_transaction": |
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.
Move this logic to app
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.
Assert that the Txn.Rekey == Zero Address
end | ||
|
||
@public() | ||
func set_fee_setter(proposal_id: bytes, new_fee_setter: bytes): |
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.
func set_fee_setter(proposal_id: bytes, new_fee_setter: bytes): | |
func set_fee_setter(proposal_id: bytes, new_fee_setter: bytes[32]): |
Fee: 0 | ||
end | ||
|
||
Proposal proposal = Cast(extract(4, 182, Itxn.LastLog), Proposal) |
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.
It is better to use Sizeof
Update contracts in #3
Compatible sdk version: https://github.com/Hipo/private-tinyman-py-sdk/pull/10/commits/679cdda6b7d12d871c1b66ffc6deebde320de522
Note: This PR also includes changes for
proposal_voting_approval
in #6