From 8d83f0845338152c1654cd37cbcfabb9b587e543 Mon Sep 17 00:00:00 2001 From: Thomas Coratger Date: Thu, 25 Apr 2024 20:39:04 +0200 Subject: [PATCH] clean up --- starknet-accounts/tests/single_owner_account.rs | 4 ++-- starknet-core/src/chain_id.rs | 6 +++--- starknet-crypto-codegen/src/pedersen.rs | 16 ---------------- 3 files changed, 5 insertions(+), 21 deletions(-) diff --git a/starknet-accounts/tests/single_owner_account.rs b/starknet-accounts/tests/single_owner_account.rs index ab719939..a7a11bef 100644 --- a/starknet-accounts/tests/single_owner_account.rs +++ b/starknet-accounts/tests/single_owner_account.rs @@ -232,7 +232,7 @@ async fn can_execute_eth_transfer_inner(provider: P, Felt::from_hex("00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff").unwrap(), )); let address = Felt::from_hex(address).unwrap(); - let tst_token_address = + let eth_token_address = Felt::from_hex("049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7").unwrap(); let mut account = @@ -241,7 +241,7 @@ async fn can_execute_eth_transfer_inner(provider: P, let result = account .execute(vec![Call { - to: tst_token_address, + to: eth_token_address, selector: get_selector_from_name("transfer").unwrap(), calldata: vec![Felt::from_hex("0x1234").unwrap(), Felt::ONE, Felt::ZERO], }]) diff --git a/starknet-core/src/chain_id.rs b/starknet-core/src/chain_id.rs index a2c3d41e..cbb430fa 100644 --- a/starknet-core/src/chain_id.rs +++ b/starknet-core/src/chain_id.rs @@ -24,10 +24,10 @@ pub const TESTNET2: Felt = Felt::from_raw([ ]); pub const SEPOLIA: Felt = Felt::from_raw([ - 1555806712078248243, - 18446744073708869172, - 18446744073709551615, 507980251676163170, + 18446744073709551615, + 18446744073708869172, + 1555806712078248243, ]); #[cfg(test)] diff --git a/starknet-crypto-codegen/src/pedersen.rs b/starknet-crypto-codegen/src/pedersen.rs index 866d9a8c..a15e3d8b 100644 --- a/starknet-crypto-codegen/src/pedersen.rs +++ b/starknet-crypto-codegen/src/pedersen.rs @@ -70,22 +70,6 @@ fn push_points( fn push_point(buf: &mut String, p: &AffinePoint) -> std::fmt::Result { let x = p.x().to_raw(); let y = p.y().to_raw(); - // writeln!(buf, "starknet_types_core::curve::AffinePoint {{")?; - // writeln!(buf, "x: starknet_types_core::felt::Felt::from_raw([")?; - // writeln!(buf, "{},", x[0])?; - // writeln!(buf, "{},", x[1])?; - // writeln!(buf, "{},", x[2])?; - // writeln!(buf, "{},", x[3])?; - // writeln!(buf, "]),")?; - // writeln!(buf, "y: starknet_types_core::felt::Felt::from_raw([")?; - // writeln!(buf, "{},", y[0])?; - // writeln!(buf, "{},", y[1])?; - // writeln!(buf, "{},", y[2])?; - // writeln!(buf, "{},", y[3])?; - // writeln!(buf, "]),")?; - // writeln!(buf, "infinity: false,")?; - // writeln!(buf, "}},")?; - writeln!( buf, "starknet_types_core::curve::AffinePoint::new_unchecked ("