From dec8d45e4ca39e5dd48f86e2b33a55bc3b6fb6b3 Mon Sep 17 00:00:00 2001
From: aya015757881 <2581015450@qq.com>
Date: Wed, 8 May 2024 15:13:09 +0800
Subject: [PATCH 1/2] fix: amount deserialization

---
 anychain-ripple/src/transaction.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/anychain-ripple/src/transaction.rs b/anychain-ripple/src/transaction.rs
index f2efe7a..8f5f4b0 100644
--- a/anychain-ripple/src/transaction.rs
+++ b/anychain-ripple/src/transaction.rs
@@ -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 {

From 5445b1ece30032003707a16b70b4fea8eb53f72c Mon Sep 17 00:00:00 2001
From: aya015757881 <2581015450@qq.com>
Date: Wed, 8 May 2024 15:13:56 +0800
Subject: [PATCH 2/2] refactor: version update

---
 Cargo.lock                 | 2 +-
 anychain-ripple/Cargo.toml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock
index 9dfd301..8d4a985 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -297,7 +297,7 @@ dependencies = [
 
 [[package]]
 name = "anychain-ripple"
-version = "0.1.7"
+version = "0.1.8"
 dependencies = [
  "anychain-core",
  "base58",
diff --git a/anychain-ripple/Cargo.toml b/anychain-ripple/Cargo.toml
index 8716054..6de8a90 100644
--- a/anychain-ripple/Cargo.toml
+++ b/anychain-ripple/Cargo.toml
@@ -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