Skip to content

Commit

Permalink
update to 0.29.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianmarco Fraccaroli committed Jan 7, 2024
1 parent 81c9a6b commit 7c66895
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
21 changes: 11 additions & 10 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion src/handler/faucet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use namada_sdk::{
signing::default_sign,
tendermint::abci::Code,
Namada,
core::types::transaction::ResultCode
};

use crate::{
Expand Down Expand Up @@ -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()))
}
Expand Down

0 comments on commit 7c66895

Please sign in to comment.