wcy1231
wcy1231
Good! The same question gym -> gymnasium.
I meet the same problem with setcode at front end. And I use "new Uint8Array(wasm.data)", but it still not work. Do you have sample code. Thanks a lot ~
@amolmaid Thank you. I fix this just now. Also after a long time. My method is change the wasm to ASCII string. It can work at front end
I also read .wasm from backend backend: nodedjs wasm= fs.readFileSync('s.wasm'); res.send(hex2ascii(wasm.toString('Hex'))) frontend: eos.setcode('myaccount',0,0,wasm)