Skip to content

Commit 9c236ec

Browse files
authored
refactor: utxo message structure (#210)
1 parent 8d48ef8 commit 9c236ec

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bridge-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bridge-cli"
3-
version = "0.3.15"
3+
version = "0.3.16"
44
edition = "2021"
55
repository = "https://github.com/Near-One/bridge-sdk-rs"
66

bridge-sdk/bridge-clients/near-bridge-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "near-bridge-client"
3-
version = "0.2.3"
3+
version = "0.2.4"
44
edition = "2021"
55

66
[dependencies]

bridge-sdk/bridge-clients/near-bridge-client/src/btc.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ pub struct NearToBtcTransferInfo {
178178

179179
#[derive(Debug, PartialEq, serde::Deserialize, serde::Serialize)]
180180
enum UTXOChainMsg {
181-
V0 { max_fee: u64 },
181+
MaxGasFee(u64),
182182
}
183183

184184
impl NearBridgeClient {
@@ -870,9 +870,7 @@ impl NearBridgeClient {
870870
None
871871
} else {
872872
let utxo_chain_extra_info: UTXOChainMsg = serde_json::from_str(msg)?;
873-
let max_fee = match utxo_chain_extra_info {
874-
UTXOChainMsg::V0 { max_fee } => max_fee,
875-
};
873+
let UTXOChainMsg::MaxGasFee(max_fee) = utxo_chain_extra_info;
876874
Some(max_fee)
877875
};
878876

0 commit comments

Comments
 (0)