Skip to content

Commit

Permalink
Merge pull request #229 from 0xcregis/228-fix-rippleamount-deserializ…
Browse files Browse the repository at this point in the history
…ation

fix: rippleamount deserialization
  • Loading branch information
shuimuliang authored May 8, 2024
2 parents c2c6a73 + 5445b1e commit 44448ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion anychain-ripple/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "anychain-ripple"
description = "A Rust library for interacting with the Ripple blockchain. It provides core functionalities such as transaction signing and serialization, address generation, and network communication."
version = "0.1.7"
version = "0.1.8"
keywords = ["ripple", "blockchain", "cryptocurrencies", "wallet", "transactions"]

# Workspace inherited keys
Expand Down
2 changes: 1 addition & 1 deletion anychain-ripple/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ impl RippleTransaction {
field_value, value, ..
} => {
if *field_value == 1 {
amount = *value;
amount = *value & !0x4000000000000000;
} else if *field_value == 8 {
fee = *value as u32;
} else {
Expand Down

0 comments on commit 44448ba

Please sign in to comment.