Skip to content

Commit

Permalink
chainid change
Browse files Browse the repository at this point in the history
  • Loading branch information
ermvrs committed Dec 27, 2024
1 parent bb02aa3 commit cb44876
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 23 deletions.
17 changes: 6 additions & 11 deletions address_book.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
[
{
"tag" : "Sample Wallet",
"starknet": "0x061D2D0E093B92116632A5068Ce683d051E2Ada4ACddf948bA77ec2Fed9786d6",
"ethereum": "0x5edC6cc5F65A58476c875e12803aAB19A9B0De3e"
"tag" : "Rosettanet",
"sepolia": "0x01efb4bfe45e119c9c591767043d3e739fe995f465127e285c1180d52b2646ff",
"class": "0x06bcca4e8edade2a755a9a04f62476e383ab0c853ca94293eb18a7aff78530ec"
},
{
"tag" : "STRK Token",
"starknet": "0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d",
"ethereum": "0xee98ffb20c31f5cd61d6ab07201858f4287c938d"
},
{
"tag" : "ETH Token",
"starknet": "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",
"ethereum": "0xd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"
"tag" : "Rosetta Account",
"sepolia": "",
"class": "0x0762a134cd04ef7066cbad3c50c7134224ba57e562d812575d0522dcb530067f"
}
]
15 changes: 3 additions & 12 deletions src/accounts/utils.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::utils::bytes::{U8SpanExTrait, ByteArrayExTrait};
use crate::utils::transaction::eip2930::{AccessListItem};
use starknet::eth_signature::{verify_eth_signature};

pub const CHAIN_ID: u64 = 11155111; // TODO: Correct it
pub const CHAIN_ID: u64 = 0x52535453; // TODO: Correct it

#[derive(Copy, Drop, Serde)]
pub struct RosettanetSignature {
Expand Down Expand Up @@ -38,18 +38,9 @@ pub struct RosettanetMulticall {
calldata: Span<felt252>,
}

// TODO: add tests
// TODO
pub fn prepare_multicall_context(calldata: Span<felt252>) -> Span<RosettanetMulticall> {
// TODO: fonksiyonun adini deserialize_multicall_context olarak degistir
// Deserializeyi manuel yapmak gerekiyor
let mut calldata = calldata;
let _ = calldata.pop_front(); // First element removed, its selector.

let calls_count: u64 = calldata.pop_front().unwrap().try_into().unwrap(); // Total calls in multicall array

let calls: Span<RosettanetMulticall> = Serde::deserialize(ref calldata).unwrap();

calls
array![].span()
}

pub fn generate_tx_hash(call: RosettanetCall) -> u256 {
Expand Down

0 comments on commit cb44876

Please sign in to comment.