From 1a19b6655a10cb1e6b1537480144da618663db5d Mon Sep 17 00:00:00 2001 From: aya015757881 <2581015450@qq.com> Date: Fri, 5 Jul 2024 16:35:15 +0800 Subject: [PATCH 1/2] fix: stringify ethereum amount --- anychain-ethereum/src/transaction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anychain-ethereum/src/transaction.rs b/anychain-ethereum/src/transaction.rs index 1e79698..1f4370f 100644 --- a/anychain-ethereum/src/transaction.rs +++ b/anychain-ethereum/src/transaction.rs @@ -121,7 +121,7 @@ impl EthereumTransactionParameters { "function": "transfer", "params": { "to": to, - "amount": amount + "amount": amount.to_string(), } })) } From 2eba2a9baf417257de88d30775e986ddef78cced Mon Sep 17 00:00:00 2001 From: aya015757881 <2581015450@qq.com> Date: Fri, 5 Jul 2024 16:36:13 +0800 Subject: [PATCH 2/2] refactor: version update --- Cargo.lock | 2 +- anychain-ethereum/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 42f583a..39982b6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -188,7 +188,7 @@ dependencies = [ [[package]] name = "anychain-ethereum" -version = "0.1.13" +version = "0.1.14" dependencies = [ "anychain-core", "ethabi", diff --git a/anychain-ethereum/Cargo.toml b/anychain-ethereum/Cargo.toml index 781019b..f8dab5e 100644 --- a/anychain-ethereum/Cargo.toml +++ b/anychain-ethereum/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "anychain-ethereum" description = "A Rust library for Ethereum-focused cryptocurrency wallets, enabling seamless transactions on the Ethereum blockchain" -version = "0.1.13" +version = "0.1.14" keywords = ["blockchain", "crypto", "cryptocurrencies", "ethereum", "wallet"] # Workspace inherited keys