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

Update C API to use uint64_t instead of uint256be where it makes sense #144

Merged
merged 3 commits into from
Oct 12, 2024

Conversation

poszu
Copy link
Collaborator

@poszu poszu commented Oct 11, 2024

Closes #140.
Updated:

  • get_balance() to return uint64_t
  • athcon_message::value to uint64_t as it represents coins and is converted to uint64_t internally anyways
  • athcon_tx_context::tx_gas_price as it is converted to uint64_t internally

Copy link
Contributor

@lrettig lrettig left a comment

Choose a reason for hiding this comment

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

Why not also update athcon.h and the Rust side?

@poszu
Copy link
Collaborator Author

poszu commented Oct 11, 2024

Why not also update athcon.h and the Rust side?

What do you mean? I updated athcon.h and both Rust sides of the FFI in this PR (and Go host side too).

@lrettig
Copy link
Contributor

lrettig commented Oct 11, 2024

Why not also update athcon.h and the Rust side?

What do you mean? I updated athcon.h and both Rust sides of the FFI in this PR (and Go host side too).

I must've only been seeing one commit, oops...

@poszu poszu merged commit 461e631 into main Oct 12, 2024
8 checks passed
@poszu poszu deleted the fix/140-get-balance-return-value branch October 12, 2024 06:24
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.

Return u64 from get_balance in the athcon FFI
2 participants