Skip to content

Commit

Permalink
Merge pull request #6 from horizonx-tech/deps/ic-cdk-0.13.2
Browse files Browse the repository at this point in the history
deps/ic cdk 0.13.2
  • Loading branch information
megared05 authored May 22, 2024
2 parents 26bb47a + 4583e48 commit 051287e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 54 deletions.
72 changes: 25 additions & 47 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 11 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
[package]
name = "ic-web3-rs"
version = "0.1.6"
version = "0.1.7"
description = "Ethereum JSON-RPC client for IC canisters."
homepage = "https://github.com/horizonx-tech/ic-web3"
repository = "https://github.com/horizonx-tech/ic-web3"
#documentation = "https://docs.rs/ic-web3"
license = "MIT"
keywords = ["dfinity", "icp", "web3", "ethereum", "rpc"]
authors = ["Tomasz Drwięga <[email protected]>", "Rocklabs <[email protected]>, hide-yoshi<[email protected]>"]
authors = [
"Tomasz Drwięga <[email protected]>",
"Rocklabs <[email protected]>, hide-yoshi<[email protected]>",
]
readme = "README.md"
edition = "2018"

Expand All @@ -29,9 +32,9 @@ serde_json = "1.0.39"
tiny-keccak = { version = "2.0.1", features = ["keccak"] }
pin-project = "1.0"
# ic related
ic-cdk = "0.11.3"
ic-cdk-macros = "0.8.1"
candid = "0.9.6"
ic-cdk = "0.13.2"
ic-cdk-macros = "0.13.2"
candid = "^0.10.4"


# Optional deps
Expand Down Expand Up @@ -59,7 +62,9 @@ js-sys = { version = "0.3.45", optional = true }
### This is a transitive dependency, only here so we can turn on its wasm_bindgen feature
rand = { version = "0.8.1", optional = true }
getrandom = { version = "0.2", features = ["custom"] }
wasm-bindgen = { version = "0.2.68", optional = true, features = ["serde-serialize"] }
wasm-bindgen = { version = "0.2.68", optional = true, features = [
"serde-serialize",
] }
wasm-bindgen-futures = { version = "0.4.18", optional = true }
derive_builder = "0.12.0"
num-bigint = "0.4.4"
Expand Down
3 changes: 2 additions & 1 deletion src/transforms/transform.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use candid::Nat;
use derive_builder::Builder;
use ic_cdk::api::management_canister::http_request::{HttpResponse, TransformArgs};
use serde_json::Value;
Expand All @@ -19,7 +20,7 @@ pub trait TransformProcessor {
status: raw.response.status.clone(),
..Default::default()
};
if res.status == 200 {
if res.status == Nat::from(200u8) {
res.body = self.process_body(&raw.response.body);
} else {
ic_cdk::api::print(format!("Received an error from blockchain: err = {:?}", raw));
Expand Down

0 comments on commit 051287e

Please sign in to comment.