Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
eyusufatik committed Aug 29, 2024
1 parent 5f6b66b commit b3a36ff
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 17 deletions.
1 change: 0 additions & 1 deletion crates/sovereign-sdk/fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use sov_modules_api::macros::DefaultRuntime;
use sov_modules_api::{
Address, Context, DispatchCall, EncodeCall, Genesis, MessageCodec, ModuleInfo, SpecId,
};
use sov_rollup_interface::spec::SpecId;
use sov_state::ZkStorage;

#[derive(Genesis, DispatchCall, MessageCodec, DefaultRuntime)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
use jsonrpsee::core::RpcResult;
use sov_modules_api::default_context::ZkDefaultContext;
use sov_modules_api::macros::{expose_rpc, rpc_gen, DefaultRuntime};
use sov_modules_api::prelude::*;
use sov_modules_api::{
prelude::*, Address, CallResponse, Context, DispatchCall, EncodeCall, Error, Genesis,
MessageCodec, Module, ModuleInfo, StateValue, WorkingSet,
Address, CallResponse, Context, DispatchCall, EncodeCall, Error, Genesis, MessageCodec, Module,
ModuleInfo, SpecId, StateValue, WorkingSet,
};
use sov_state::ZkStorage;

Expand Down Expand Up @@ -124,7 +125,7 @@ fn main() {
let module = RT::decode_call(&serialized_message).unwrap();
let sender = Address::try_from([11; 32].as_ref()).unwrap();
let sequencer = Address::try_from([12; 32].as_ref()).unwrap();
let context = C::new(sender, sequencer, 1);
let context = C::new(sender, sequencer, 1, SpecId::Genesis, 0);

let _ = runtime
.dispatch_call(module, working_set, SpecId::Genesis, &context)
Expand Down
6 changes: 3 additions & 3 deletions crates/sovereign-sdk/rollup-interface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ serde_json = { workspace = true }
[features]
default = ["std"]
native = ["std", "tokio", "futures"]
fuzzing = ["dep:proptest", "dep:proptest-derive", "dep:sha2", "std"]
testing = ["native", "dep:proptest", "dep:proptest-derive"]
arbitrary = ["dep:arbitrary", "dep:proptest", "dep:proptest-derive"]
fuzzing = ["proptest", "proptest-derive", "sha2", "std"]
testing = ["native"]
arbitrary = ["dep:arbitrary"]
std = [
"anyhow/default",
"borsh/default",
Expand Down
2 changes: 1 addition & 1 deletion crates/sovereign-sdk/rollup-interface/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ help: ## Display this help message
check-no-std: ## Checks that project compiles without std
# check bare metal
cargo hack check --feature-powerset \
--exclude-features default,fuzzing,std,native,testing \
--exclude-features default,fuzzing,std,native,testing,arbitrary \
--target thumbv6m-none-eabi
10 changes: 2 additions & 8 deletions crates/sovereign-sdk/rollup-interface/src/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ mod spec {
Hash,
)]
#[borsh(use_discriminant = true)]
#[cfg_attr(
feature = "arbitrary",
derive(arbitrary::Arbitrary, proptest_derive::Arbitrary)
)]
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
pub enum SpecId {
/// Genesis spec
#[default]
Expand All @@ -52,10 +49,7 @@ mod spec {
Hash,
)]
#[borsh(use_discriminant = true)]
#[cfg_attr(
feature = "arbitrary",
derive(arbitrary::Arbitrary, proptest_derive::Arbitrary)
)]
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
pub enum SpecId {
/// Genesis spec
#[default]
Expand Down

0 comments on commit b3a36ff

Please sign in to comment.