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

[VEN-2001]: Payments to Peckshield and Code4Rena #76

Merged
merged 2 commits into from
Sep 25, 2023

Conversation

kkirka
Copy link
Contributor

@kkirka kkirka commented Sep 22, 2023

This PR adds a simulation for "VIP-173 Payments Issuance for performed Audits". It also modifies callbackAfterExecution type a bit to simplify assertions, see commit msg for details.

Problem: Some methods, e.g. expect(tx).to.emit, expect a response
object, not a receipt object, as a parameter. We can always get
receipt from response by calling `await tx.wait()`, but we can't
get response from receipt.

Solution: Pass plain tx as an argument of callbackAfterExecution,
modify expectEvents to accept TransactionResponse and wait for the
receipt under the hood.
@kkirka kkirka force-pushed the feat/payments-2023-09-22 branch from 1dd2307 to 810901c Compare September 22, 2023 19:13
@chechu
Copy link
Member

chechu commented Sep 25, 2023

@kkirka kkirka force-pushed the feat/payments-2023-09-22 branch from 1af35e5 to 0dba5a2 Compare September 25, 2023 13:22
@kkirka kkirka merged commit 25db152 into develop Sep 25, 2023
2 checks passed
@kkirka kkirka deleted the feat/payments-2023-09-22 branch September 25, 2023 13:29
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.

2 participants