浏览代码

Deploy does not want the program account (#941)

This was changed in @solana/solidity 0.0.20 but the example here was not
updated.

Signed-off-by: Sean Young <sean@mess.org>
Sean Young 3 年之前
父节点
当前提交
d5eb6b3295
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/targets/solana.rst

+ 1 - 1
docs/targets/solana.rst

@@ -57,7 +57,7 @@ Now run the following javascript by saving it to `flipper.js` and running it wit
 
 
         console.log('Program deployment finished, deploying the flipper contract ...');
         console.log('Program deployment finished, deploying the flipper contract ...');
 
 
-        await contract.deploy('flipper', [true], program, storage, 17);
+        await contract.deploy('flipper', [true], storage, 17);
 
 
         const res = await contract.functions.get();
         const res = await contract.functions.get();
         console.log('state: ' + res.result);
         console.log('state: ' + res.result);