mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-05-17 13:39:39 +00:00
CI fixes
This commit is contained in:
parent
f94b05ac0f
commit
6fbe5e42c7
@ -204,7 +204,7 @@ pub mod tests {
|
|||||||
let nonces_bytes: &[u8] = &[1, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
let nonces_bytes: &[u8] = &[1, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||||
// all remaining vec fields are empty: u32 len=0
|
// all remaining vec fields are empty: u32 len=0
|
||||||
let empty_vec_bytes: &[u8] = &[0_u8; 4];
|
let empty_vec_bytes: &[u8] = &[0_u8; 4];
|
||||||
// validity windows: unbounded = {from: None (0u8), to: None (0u8)}
|
// validity windows: unbounded = {from: None (0_u8), to: None (0_u8)}
|
||||||
let unbounded_window_bytes: &[u8] = &[0_u8; 2];
|
let unbounded_window_bytes: &[u8] = &[0_u8; 2];
|
||||||
|
|
||||||
let expected_borsh_vec: Vec<u8> = [
|
let expected_borsh_vec: Vec<u8> = [
|
||||||
|
|||||||
@ -49,7 +49,7 @@ pub enum Instruction {
|
|||||||
|
|
||||||
pub fn compute_ata_seed(owner_id: AccountId, definition_id: AccountId) -> PdaSeed {
|
pub fn compute_ata_seed(owner_id: AccountId, definition_id: AccountId) -> PdaSeed {
|
||||||
use risc0_zkvm::sha::{Impl, Sha256};
|
use risc0_zkvm::sha::{Impl, Sha256};
|
||||||
let mut bytes = [0u8; 64];
|
let mut bytes = [0_u8; 64];
|
||||||
bytes[0..32].copy_from_slice(&owner_id.to_bytes());
|
bytes[0..32].copy_from_slice(&owner_id.to_bytes());
|
||||||
bytes[32..64].copy_from_slice(&definition_id.to_bytes());
|
bytes[32..64].copy_from_slice(&definition_id.to_bytes());
|
||||||
PdaSeed::new(
|
PdaSeed::new(
|
||||||
|
|||||||
@ -173,7 +173,8 @@ mod tests {
|
|||||||
|
|
||||||
use super::PersistentAccountDataPublic;
|
use super::PersistentAccountDataPublic;
|
||||||
|
|
||||||
// Root public account keys derived from a known test seed; see key_protocol's keys_public tests.
|
// Root public account keys derived from a known test seed; see key_protocol's keys_public
|
||||||
|
// tests.
|
||||||
const CSK_BYTES: [u8; 32] = [
|
const CSK_BYTES: [u8; 32] = [
|
||||||
40, 35, 239, 19, 53, 178, 250, 55, 115, 12, 34, 3, 153, 153, 72, 170, 190, 36, 172, 36,
|
40, 35, 239, 19, 53, 178, 250, 55, 115, 12, 34, 3, 153, 153, 72, 170, 190, 36, 172, 36,
|
||||||
202, 148, 181, 228, 35, 222, 58, 84, 156, 24, 146, 86,
|
202, 148, 181, 228, 35, 222, 58, 84, 156, 24, 146, 86,
|
||||||
@ -198,7 +199,7 @@ mod tests {
|
|||||||
|
|
||||||
fn make_public_account_data(data: Option<ChildKeysPublic>) -> PersistentAccountDataPublic {
|
fn make_public_account_data(data: Option<ChildKeysPublic>) -> PersistentAccountDataPublic {
|
||||||
PersistentAccountDataPublic {
|
PersistentAccountDataPublic {
|
||||||
account_id: AccountId::new([0u8; 32]),
|
account_id: AccountId::new([0_u8; 32]),
|
||||||
chain_index: ChainIndex::root(),
|
chain_index: ChainIndex::root(),
|
||||||
data,
|
data,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user