Skip to content

Commit

Permalink
feat: signature length expected 6 (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat authored Jun 5, 2024
1 parent f6ffa5f commit 103e311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/contracts/src/account_contract.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub mod AccountContract {
// todo: activate check once using snfoundry
// assert(tx_info.version.try_into().unwrap() >= 1_u128, 'EOA: deprecated tx version');
assert(self.Account_bytecode.read().len().is_zero(), 'EOAs: Cannot have code');
assert(tx_info.signature.len() == 5, 'EOA: invalid signature length');
assert(tx_info.signature.len() == 6, 'EOA: invalid signature length');

let call = calls.at(0);
assert(*call.to == self.ownable.owner(), 'to is not kakarot core');
Expand Down

0 comments on commit 103e311

Please sign in to comment.