MCPcopy Create free account
hub / github.com/B3Pay/B3Wallet / loadWasmChunk

Function loadWasmChunk

scripts/load-wasm.system.ts:67–73  ·  view source on GitHub ↗
(wasm_hash: number[], wasmModule: number[])

Source from the content-addressed store, hash-verified

65}
66
67const loadWasmChunk = async (wasm_hash: number[], wasmModule: number[]) => {
68 for await (const chunks of chunkGenerator(wasmModule)) {
69 const result = await callSystemMethod("load_wasm_chunk", wasm_hash, chunks)
70
71 console.log("Chunks: ", result)
72 }
73}
74
75export const load = async (appId: string, reload: boolean) => {
76 const version = await readVersion(appId)

Callers 1

loadFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected