Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Token amounts wasting a bit by using i64 #1526

Closed
garious opened this issue Oct 17, 2018 · 0 comments
Closed

Token amounts wasting a bit by using i64 #1526

garious opened this issue Oct 17, 2018 · 0 comments
Assignees

Comments

@garious
Copy link
Contributor

garious commented Oct 17, 2018

Problem:
When the contract engine was added, the use of an i64 type for tokens instead of a u64 became pointless. Each program would need to define an associative operation on the type held in its userdata so that it could coalesce from the right in forked banks. And since that operation would probably require deserialization, it's looking especially unlikely that we'd go that route.

Proposed solution:
Change i64 to u64 and delete checks for negative tokens ...and stop worrying about missing checks for negative tokens.

@garious garious added this to the v0.11 Tabletops milestone Oct 17, 2018
@garious garious self-assigned this Nov 5, 2018
garious added a commit to garious/solana that referenced this issue Nov 5, 2018
garious added a commit that referenced this issue Nov 5, 2018
vkomenda pushed a commit to vkomenda/solana that referenced this issue Aug 29, 2021
TESLA-SATI pushed a commit to TESLA-SATI/solana that referenced this issue May 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant