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

Update Executor Contracts #7

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open

Conversation

etzellux
Copy link
Collaborator

@etzellux etzellux commented Feb 6, 2024

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

@etzellux etzellux changed the base branch from main to use-tealish-router February 6, 2024 12:18
@etzellux etzellux changed the base branch from use-tealish-router to main February 6, 2024 12:18
@etzellux etzellux mentioned this pull request Feb 7, 2024

assert(Txn.GroupIndex == 1)

if Gtxn[0].ApplicationArgs[0] == "validate_transaction":
Copy link
Collaborator Author

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

Copy link
Collaborator Author

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):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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)
Copy link
Collaborator Author

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

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

Successfully merging this pull request may close these issues.

1 participant