diff --git a/crates/snops/src/cannon/source.rs b/crates/snops/src/cannon/source.rs index 01e864d9..a3046d54 100644 --- a/crates/snops/src/cannon/source.rs +++ b/crates/snops/src/cannon/source.rs @@ -303,8 +303,8 @@ impl ComputeTarget { "id": 1, "method": "generateTransaction", "params": { - "authorization": serde_json::to_string(&auth["authorization"]).map_err(|e| SourceError::Json("auth[authorize]", e))?, - "fee": serde_json::to_string(&auth["fee"]).map_err(|e| SourceError::Json("auth[fee]", e))?, + "authorization": serde_json::to_string(&auth).map_err(|e| SourceError::Json("authorize tx", e))?, + "fee": serde_json::to_string(&fee_auth).map_err(|e| SourceError::Json("authorize fee", e))?, "url": query_path, "broadcast": true, } diff --git a/crates/snops/src/persist/storage.rs b/crates/snops/src/persist/storage.rs index 5d3a8ed1..b4c26bce 100644 --- a/crates/snops/src/persist/storage.rs +++ b/crates/snops/src/persist/storage.rs @@ -208,6 +208,7 @@ mod tests { PersistStorageFormatHeader::LATEST_HEADER.to_byte_vec()?, PersistStorage::LATEST_HEADER.version.to_byte_vec()?, RetentionPolicy::LATEST_HEADER.to_byte_vec()?, + NetworkId::LATEST_HEADER.to_byte_vec()?, ] .concat() ); diff --git a/crates/snops/src/schema/timeline_tests.rs b/crates/snops/src/schema/timeline_tests.rs index d5855e76..9d2233b3 100644 --- a/crates/snops/src/schema/timeline_tests.rs +++ b/crates/snops/src/schema/timeline_tests.rs @@ -43,16 +43,15 @@ fn test_timeline_config_serde() { fn test_timeline_execute() { let yaml = r#" execute: - private-key: committee.0.private + cannon: foo program: credits.aleo + private-key: PRIVATE KEY function: transfer_public - target: validator/1 inputs: - 0u64 - - committee.1.public + - ADDRESS priority-fee: 13 fee-record: "fee_record_json" - duration: 1m "#; assert!(serde_yaml::from_str::(yaml).is_ok());