Skip to content

Commit

Permalink
feat: eth tx constructor (#472)
Browse files Browse the repository at this point in the history
* feat: eth tx constructor

* chore: typo comment

---------

Co-authored-by: Orlando <[email protected]>
  • Loading branch information
Orland0x and Orlando authored Aug 7, 2023
1 parent 5e96e3e commit 60212fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions starknet/src/authenticators/eth_tx.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ mod EthTxAuthenticator {
}
}

#[constructor]
fn constructor(ref self: ContractState, starknet_commit_address: EthAddress) {
self._starknet_commit_address.write(starknet_commit_address);
}

#[l1_handler]
fn commit(
ref self: ContractState, from_address: felt252, sender_address: felt252, hash: felt252
Expand Down

0 comments on commit 60212fd

Please sign in to comment.