@@ -13,8 +13,8 @@ pub(crate) global MAX_ACCOUNT_STATE_LEN: u32 = 110; // Values taken from account
1313pub (crate ) global MAX_ACCOUNT_LEAF_LEN : u32 = 148 ;
1414
1515pub struct AccountWithinBlock {
16- account : Account ,
17- block_hash : Bytes32 ,
16+ pub ( crate ) account : Account ,
17+ pub ( crate ) block_hash : Bytes32 ,
1818}
1919
2020impl Eq for AccountWithinBlock {
@@ -27,7 +27,7 @@ type AccountWithStateProofM = (Account, ProofInput<MAX_PREFIXED_KEY_NIBBLE_LEN,
2727
2828type ProofInputSerialized <let LEN : u32 > = [Field ; LEN ];
2929
30- pub fn get_account (chain_id : Field , block_no : u64 , address : Address ) -> AccountWithinBlock {
30+ pub fn get_account (chain_id : u32 , block_no : u64 , address : Address ) -> AccountWithinBlock {
3131 let (account , state_proof ) = get_account_unconstrained_M (chain_id , block_no , address );
3232 let header = get_header (chain_id , block_no );
3333 verify_account (address , account , state_proof , header .state_root );
@@ -36,13 +36,13 @@ pub fn get_account(chain_id: Field, block_no: u64, address: Address) -> AccountW
3636
3737#[oracle(get_account)]
3838unconstrained fn get_account_oracle <let PROOF_INPUT_LEN : u32 >(
39- _chain_id : Field ,
39+ _chain_id : u32 ,
4040 _block_no : u64 ,
4141 _address : [u8 ; 20 ],
4242) -> (Account , ProofInputSerialized <PROOF_INPUT_LEN >) {}
4343
4444unconstrained fn get_account_unconstrained_M (
45- chain_id : Field ,
45+ chain_id : u32 ,
4646 block_no : u64 ,
4747 address : Address ,
4848) -> AccountWithStateProofM {
0 commit comments