mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-05 23:03:06 +00:00
move modified transfer program to test programs
This commit is contained in:
parent
c6f0782d26
commit
e9c9058827
@ -7,7 +7,7 @@ use serde::Serialize;
|
|||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
error::NssaError,
|
error::NssaError,
|
||||||
program_methods::{AUTHENTICATED_TRANSFER_ELF, MODIFIED_TRANSFER_ELF, PINATA_ELF, TOKEN_ELF},
|
program_methods::{AUTHENTICATED_TRANSFER_ELF, PINATA_ELF, TOKEN_ELF},
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Maximum number of cycles for a public execution.
|
/// Maximum number of cycles for a public execution.
|
||||||
@ -95,12 +95,6 @@ impl Program {
|
|||||||
// `program_methods`
|
// `program_methods`
|
||||||
Self::new(TOKEN_ELF.to_vec()).unwrap()
|
Self::new(TOKEN_ELF.to_vec()).unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn modified_transfer_program() -> Self {
|
|
||||||
// This unwrap won't panic since the `MODIFIED_TRANSFER_ELF` comes from risc0 build of
|
|
||||||
// `program_methods`
|
|
||||||
Self::new(MODIFIED_TRANSFER_ELF.to_vec()).unwrap()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Testnet only. Refactor to prevent compilation on mainnet.
|
// TODO: Testnet only. Refactor to prevent compilation on mainnet.
|
||||||
@ -227,6 +221,13 @@ mod tests {
|
|||||||
elf: CLAIMER_ELF.to_vec(),
|
elf: CLAIMER_ELF.to_vec(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn modified_transfer_program() -> Self {
|
||||||
|
use test_program_methods::MODIFIED_TRANSFER_ELF;
|
||||||
|
// This unwrap won't panic since the `MODIFIED_TRANSFER_ELF` comes from risc0 build of
|
||||||
|
// `program_methods`
|
||||||
|
Self::new(MODIFIED_TRANSFER_ELF.to_vec()).unwrap()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user