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

Allow BigInts to be used in Transaction constructor #263

Merged
merged 2 commits into from
Jan 2, 2021

Conversation

jasonpaulos
Copy link
Contributor

Currently's it's not possible to construct an asset creation transaction that has a total issuance larger than 2^53-1, or transfer asset amounts that exceed 2^53-1. This PR fixes this by allowing the Transaction constructor to accept BigInts for the asset total parameter and amount parameter. Since our msgpack fork already supports encoding and decoding BigInts, this just updates the gatekeeping logic we perform on amount and assetTotal.

@jasonpaulos jasonpaulos merged commit 263fd5d into develop Jan 2, 2021
@jasonpaulos jasonpaulos deleted the jason/asset-total-fix branch January 2, 2021 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants