Skip to content

Commit

Permalink
chore: bump starknet-rs (#49)
Browse files Browse the repository at this point in the history
* fix: escape input strings for token alias

* fix: use new account call struct

* chore: bump starknet-rs
  • Loading branch information
glihm authored Aug 9, 2024
1 parent 3ca83b5 commit 77807b5
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 96 deletions.
129 changes: 44 additions & 85 deletions Cargo.lock

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

10 changes: 2 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ thiserror = "1.0"
tracing = "0.1.34"
tracing-subscriber = { version = "0.3.16", features = [ "env-filter", "json" ] }
url = "2.4.0"
starknet = "0.11.0"
# This version ensures `Felt` can be converted using `FromStr` for command line parsing.
starknet-types-core = ">=0.1.4"
starknet = { git = "https://github.com/xJonathanLEI/starknet-rs", rev = "2ddc694" }
starknet-types-core = { git = "https://github.com/starknet-io/types-rs", rev = "f98f048" }

[dependencies]
camino.workspace = true
Expand All @@ -53,11 +52,6 @@ tracing-subscriber.workspace = true
url.workspace = true
tokio = { version = "1.15.0", features = ["full"], optional = true }

[patch.crates-io]
# Remove this patch once starknet-rs and types-core new revs in
# <https://github.com/cartridge-gg/cainome/pull/44> are supported by Dojo.
starknet-core = { git = "https://github.com/dojoengine/starknet-rs", branch = "fix/include-patch" }

[features]
default = []
abigen-rs = ["cainome-rs-macro"]
Expand Down
6 changes: 3 additions & 3 deletions crates/rs/src/expand/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ impl CairoFunction {
pub fn #func_name_call(
&self,
#(#inputs),*
) -> starknet::accounts::Call {
) -> starknet::core::types::Call {
use #ccs::CairoSerde;

let mut __calldata = vec![];
#(#serializations)*

starknet::accounts::Call {
starknet::core::types::Call {
to: self.address,
selector: starknet::macros::selector!(#func_name),
calldata: __calldata,
Expand All @@ -164,7 +164,7 @@ impl CairoFunction {
let mut __calldata = vec![];
#(#serializations)*

let __call = starknet::accounts::Call {
let __call = starknet::core::types::Call {
to: self.address,
selector: starknet::macros::selector!(#func_name),
calldata: __calldata,
Expand Down

0 comments on commit 77807b5

Please sign in to comment.