diff --git a/cli/src/template.rs b/cli/src/template.rs index 62245df9..d45905d7 100644 --- a/cli/src/template.rs +++ b/cli/src/template.rs @@ -282,15 +282,18 @@ pub fn node_shell( const anchor = require('@project-serum/anchor'); const web3 = anchor.web3; const PublicKey = anchor.web3.PublicKey; +const Keypair = anchor.web3.Keypair; const __wallet = new anchor.Wallet( - Buffer.from( - JSON.parse( - require('fs').readFileSync( - "{}", - {{ - encoding: "utf-8", - }}, + Keypair.fromSecretKey( + Buffer.from( + JSON.parse( + require('fs').readFileSync( + "{}", + {{ + encoding: "utf-8", + }}, + ), ), ), ),