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

Fix #155 -- allow passing large deposit amounts #157

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

aaronmgdr
Copy link
Member

Description

submitting proposals would fail because deposit BigNumber.toString() will convert to scientific notion string when value is over a certain amount and this is not what evm accepts.

Other changes

Change helper text on deposit from Gold to Celo

Tested

Added 4 test cases

Related issues

#155

Backwards compatibility

yes

Documentation

none should be needed

@aaronmgdr aaronmgdr requested a review from a team as a code owner February 27, 2024 12:03
Copy link

changeset-bot bot commented Feb 27, 2024

🦋 Changeset detected

Latest commit: 45fc27e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@celo/celocli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -88,7 +91,7 @@ export default class Propose extends BaseCommand {
await displaySendTx(
'proposeTx',
governance.propose(proposal, res.flags.descriptionURL),
{ value: deposit.toString() },
{ value: deposit.toFixed() },
Copy link
Member Author

Choose a reason for hiding this comment

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

This line is the fix

@aaronmgdr aaronmgdr force-pushed the aaronmgdr/cli-propose-tests branch from cbf0790 to 45fc27e Compare February 27, 2024 12:47

const expConfig = NetworkConfig.governance

testWithGanache('governance:propose cmd', (web3: Web3) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

@aaronmgdr aaronmgdr merged commit d5977f2 into master Feb 27, 2024
18 checks passed
@aaronmgdr aaronmgdr deleted the aaronmgdr/cli-propose-tests branch February 27, 2024 12:58
This was referenced Feb 27, 2024
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