Skip to content

use predecessor ID as donor_id; build pot & potfactory contracts#72

Open
lachlanglen wants to merge 1 commit intomainfrom
fix/pot-donor-id-patch
Open

use predecessor ID as donor_id; build pot & potfactory contracts#72
lachlanglen wants to merge 1 commit intomainfrom
fix/pot-donor-id-patch

Conversation

@lachlanglen
Copy link
Contributor

Previously, the original transaction signer was stored as the donor_id on the Donation record, which in the case of a DAO proposal will record the donor as the final account that approved the proposal and triggered the function call, not the DAO itself. Using env::predecessor_account_id() resolves this issue.

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