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

Slot/TransactionIndex/CertificateIndex changes #36

Merged
merged 1 commit into from
Mar 31, 2022

Conversation

rooooooooob
Copy link
Contributor

When Slot was changed to BigNum, it wasn't updated for wasm-suitable
API in every location (still taken by value in some spots), so this
includes fixes for that.

Also updates the changes in #33 to work with the global Slot change
that was done prior.

TransactionIndex and CertificateIndex were globablly changed to
BigNum for consistency and because we'll likely run into those
on-chain if they are already there inside of pointer addresses.

There still remains other uses of u32, especially in lower priority
structures like block headers and updates. Those should be fine for now
as we might end up removing BigNum soon anyway, and those are not as
succeptible to random users posting them on-chain.

Warning in tests were fixed as well.

When `Slot` was changed to `BigNum`, it wasn't updated for wasm-suitable
API in every location (still taken by value in some spots), so this
includes fixes for that.

Also updates the changes in #33 to work with the global `Slot` change
that was done prior.

`TransactionIndex` and `CertificateIndex` were globablly changed to
`BigNum` for consistency and because we'll likely run into those
on-chain if they are already there inside of pointer addresses.

There still remains other uses of `u32`, especially in lower priority
structures like block headers and updates. Those should be fine for now
as we might end up removing `BigNum` soon anyway, and those are not as
succeptible to random users posting them on-chain.

Warning in tests were fixed as well.
@SebastienGllmt SebastienGllmt merged commit 1702e84 into develop Mar 31, 2022
@SebastienGllmt SebastienGllmt deleted the slot-cert-tx-index-bignum branch March 31, 2022 22:03
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