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

Change verifyPayersBalanceForTransactionExecution #331

Merged

Conversation

janezpodhostnik
Copy link
Collaborator

minimumRequiredBalance should actually be equal to reservedBalance.
The maxTransactionFee was removed from minimumRequiredBalance as it is generally much smaller then the reservedBalance and only covers some edge cases, so its simpler to just not include it (as pointed out by @bluesign here).

Comment on lines 121 to 123
let tokenVault = payerAcct.borrow<&FlowToken.Vault>(from: /storage/flowTokenVault)
?? panic("Unable to borrow reference to the default token vault")

Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be deleted since you do it below?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good catch! Forgot to delete it after changing it.

@janezpodhostnik janezpodhostnik force-pushed the janez/change-verifyPayersBalanceForTransactionExecution branch from f6dcf6c to fb2d0f0 Compare December 15, 2022 16:30
@janezpodhostnik
Copy link
Collaborator Author

janezpodhostnik commented Dec 15, 2022

Any Idea why this would fail the js tests?

@joshuahannan
Copy link
Member

@sisyphusSmiling @alilloig Can y'all look at the CI here and try to help figure out why the JS tests are failing?

@sisyphusSmiling
Copy link
Contributor

sisyphusSmiling commented Dec 16, 2022

@joshuahannan at a quick glance, I believe it's related to the updates to Flow CLI which make versions beyond 0.42.0 incompatible with flow-js-testing. I was able to fix this earlier today in this PR to flow-ft, and will take a closer look in the morning

@janezpodhostnik janezpodhostnik merged commit c1b31d5 into master Dec 16, 2022
bors bot added a commit to onflow/flow-go that referenced this pull request Jan 4, 2023
3733: Upgrade core contracts r=janezpodhostnik a=janezpodhostnik

... to include: onflow/flow-core-contracts#331

Co-authored-by: Janez Podhostnik <[email protected]>
@joshuahannan joshuahannan deleted the janez/change-verifyPayersBalanceForTransactionExecution branch February 7, 2024 16:39
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.

3 participants