diff --git a/Cargo.lock b/Cargo.lock index 7b30f7b..e373e94 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3340,8 +3340,8 @@ dependencies = [ [[package]] name = "namada_core" -version = "0.28.0" -source = "git+https://github.com/anoma/namada?branch=fraccaman/draft-0.28.1#ced14f1e851d2e71316f76479524cc415fd5df16" +version = "0.29.0" +source = "git+https://github.com/anoma/namada?tag=v0.29.0#76840b5dbe1a335f45fd468ff3636825dce9df89" dependencies = [ "ark-bls12-381", "ark-serialize", @@ -3364,6 +3364,7 @@ dependencies = [ "k256", "masp_primitives", "namada_macros", + "num-derive", "num-integer", "num-rational 0.4.1", "num-traits", @@ -3390,8 +3391,8 @@ dependencies = [ [[package]] name = "namada_ethereum_bridge" -version = "0.28.0" -source = "git+https://github.com/anoma/namada?branch=fraccaman/draft-0.28.1#ced14f1e851d2e71316f76479524cc415fd5df16" +version = "0.29.0" +source = "git+https://github.com/anoma/namada?tag=v0.29.0#76840b5dbe1a335f45fd468ff3636825dce9df89" dependencies = [ "borsh", "borsh-ext", @@ -3412,8 +3413,8 @@ dependencies = [ [[package]] name = "namada_macros" -version = "0.28.0" -source = "git+https://github.com/anoma/namada?branch=fraccaman/draft-0.28.1#ced14f1e851d2e71316f76479524cc415fd5df16" +version = "0.29.0" +source = "git+https://github.com/anoma/namada?tag=v0.29.0#76840b5dbe1a335f45fd468ff3636825dce9df89" dependencies = [ "proc-macro2", "quote", @@ -3422,8 +3423,8 @@ dependencies = [ [[package]] name = "namada_proof_of_stake" -version = "0.28.0" -source = "git+https://github.com/anoma/namada?branch=fraccaman/draft-0.28.1#ced14f1e851d2e71316f76479524cc415fd5df16" +version = "0.29.0" +source = "git+https://github.com/anoma/namada?tag=v0.29.0#76840b5dbe1a335f45fd468ff3636825dce9df89" dependencies = [ "borsh", "data-encoding", @@ -3437,8 +3438,8 @@ dependencies = [ [[package]] name = "namada_sdk" -version = "0.28.0" -source = "git+https://github.com/anoma/namada?branch=fraccaman/draft-0.28.1#ced14f1e851d2e71316f76479524cc415fd5df16" +version = "0.29.0" +source = "git+https://github.com/anoma/namada?tag=v0.29.0#76840b5dbe1a335f45fd468ff3636825dce9df89" dependencies = [ "async-trait", "bimap", diff --git a/Cargo.toml b/Cargo.toml index e75a1bf..2208511 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,7 @@ rand = "0.8.5" rand_chacha = "0.3.1" dotenvy = "0.15.7" hex = "0.4.3" -namada_sdk = { git = "https://github.com/anoma/namada", branch = "fraccaman/draft-0.28.1", default-features = false, features = ["tendermint-rpc", "std", "async-client", "async-send", "download-params"] } +namada_sdk = { git = "https://github.com/anoma/namada", tag = "v0.29.0", default-features = false, features = ["tendermint-rpc", "std", "async-client", "async-send", "download-params"] } tendermint-config = "0.34.0" tendermint-rpc = { version = "0.34.0", features = ["http-client"]} orion = "0.17.5" diff --git a/src/handler/faucet.rs b/src/handler/faucet.rs index 3b35615..3f967c4 100644 --- a/src/handler/faucet.rs +++ b/src/handler/faucet.rs @@ -12,6 +12,7 @@ use namada_sdk::{ signing::default_sign, tendermint::abci::Code, Namada, + core::types::transaction::ResultCode }; use crate::{ @@ -130,7 +131,7 @@ pub async fn request_transfer( let (transfer_result, tx_hash) = if let Ok(response) = process_tx_response { match response { - namada_sdk::tx::ProcessTxResponse::Applied(r) => (r.code.eq(&"0"), Some(r.hash)), + namada_sdk::tx::ProcessTxResponse::Applied(r) => (r.code.eq(&ResultCode::Ok), Some(r.hash)), namada_sdk::tx::ProcessTxResponse::Broadcast(r) => { (r.code.eq(&Code::Ok), Some(r.hash.to_string())) }