mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-14 06:59:24 +00:00
rebase to develop latest
This commit is contained in:
@@ -19,9 +19,12 @@ fn account_from_name(name: &'static str) -> PublicKey {
|
||||
|
||||
fn wasm_binary() -> Vec<u8> {
|
||||
// TODO: Accept a config of runtime path
|
||||
if let Ok(binary) = std::fs::read("/runtime/serai.wasm") {
|
||||
const WASM_PATH: &str = "/runtime/serai.wasm";
|
||||
if let Ok(binary) = std::fs::read(WASM_PATH) {
|
||||
log::info!("using {WASM_PATH}");
|
||||
return binary;
|
||||
}
|
||||
log::info!("using built-in wasm");
|
||||
WASM_BINARY.ok_or("compiled in wasm not available").unwrap().to_vec()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user