-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the new ContractExecutor API from cairo native #19
Conversation
Corresponding sequencer PR: NethermindEth/sequencer#19 PR: #2156
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do formatting changes comply with the cargo fmt rules of the sequencer?
) -> Result<ContractExecutor, cairo_native::error::Error> { | ||
ContractExecutor::new(sierra_program, cairo_native::OptLevel::Default) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inline compile_and_load
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed compile_and_load
and just used ContractExecutor::new
.
525c6af
to
3cadcf4
Compare
Was this meant for the Juno PR? I fixed the formatting there with this commit. |
|
Program as DeprecatedProgram, | ||
}; | ||
use starknet_api::hash::StarkHash as Hash; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to use Felt
directly instead of introducing an alias for a type alias of Felt
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer in the diff after rebase.
Fixed. The rustfmt.toml uses nightly only options but there is no rust-toolchain.toml, so the formatting depends on your default toolchain selection. After setting to nightly it works. |
204e561
to
a4ffa01
Compare
a4ffa01
to
e5726cf
Compare
Corresponding sequencer PR: NethermindEth/sequencer#19 PR: #2156
Corresponding sequencer PR: NethermindEth/sequencer#19 PR: #2156
From #14 but updated dependencies
Corresponding Juno PR: NethermindEth/juno#2156