Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger committed Apr 25, 2024
1 parent 246db72 commit 8d83f08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 21 deletions.
4 changes: 2 additions & 2 deletions starknet-accounts/tests/single_owner_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ async fn can_execute_eth_transfer_inner<P: Provider + Send + Sync>(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 =
Expand All @@ -241,7 +241,7 @@ async fn can_execute_eth_transfer_inner<P: Provider + Send + Sync>(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],
}])
Expand Down
6 changes: 3 additions & 3 deletions starknet-core/src/chain_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
16 changes: 0 additions & 16 deletions starknet-crypto-codegen/src/pedersen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ("
Expand Down

0 comments on commit 8d83f08

Please sign in to comment.