Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Recompile cairo1 feature contracts 2.1.0 -> 2.4.0 (#1259)
Browse files Browse the repository at this point in the history
- In `account_with_dummy_validate` use unwrap instead of unwrap_syscall
  (the latter is no longer supported).
- Add newlines at end of files: this is part of valid json, and in
  particular once the fixer script is fixed it will generate them with
  newlines by default.
- `account_with_dummy_validate` has new resource values after
  recompilation.
- Fix resources in invoke_test that uses
  account_with_dummy_validate.cairo

Co-Authored-By: Gilad Chase <gilad@starkware.com>
  • Loading branch information
giladchase and Gilad Chase authored Jan 4, 2024
1 parent 44832c1 commit b602b31
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 140 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
mod Account {
use array::{ArrayTrait, SpanTrait};
use starknet::{ContractAddress, call_contract_syscall};
use starknet::info::SyscallResultTrait;
use zeroable::Zeroable;

#[storage]
Expand Down Expand Up @@ -47,8 +48,7 @@ mod Account {
address: contract_address,
entry_point_selector: selector,
calldata: calldata.span()
)
.unwrap_syscall()
).unwrap_syscall()
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -2958,4 +2958,4 @@
}
]
}
}
}
Loading

0 comments on commit b602b31

Please sign in to comment.