Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Commit

Permalink
Update deployment.md
Browse files Browse the repository at this point in the history
Edit deployment script to fix "owasm compilation failed" error
  • Loading branch information
tarpzy authored Dec 4, 2022
1 parent 8c85c3e commit 9cc4c69
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/custom-script/oracle-script/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ async function createOracleScript() {
// Setup the transaction's properties
const chainId = await client.getChainId()
const execPath = path.resolve(__dirname, 'hello_world.wasm')
const file = fs.readFileSync(execPath, 'utf8')
const code = Buffer.from(file).toString('base64')
const code = fs.readFileSync(execPath);

let feeCoin = new Coin()
feeCoin.setDenom('uband')
Expand Down

0 comments on commit 9cc4c69

Please sign in to comment.