Error for typescript contract deploy

my code working but not deploy . can you helpme ? why

  async function test() {
    const provider = new Provider('https://node-beta-2.fuel.network/graphql');
   const wallet =   Wallet.fromPrivateKey(( process.env.key as string),provider); // private key with coins
    //const wallet = await generateTestWallet(provider, [[5_000_000, NativeAssetId]]);
    console.log("address", wallet.address.toString());
console.log("private key", wallet.privateKey);
  console.log(wallet);
  console.log(provider);
 console.log(1);
const byteCode = readFileSync(
  join(__dirname, './../bin.bin')
);
console.log(2);
const contract = await new ContractFactory(byteCode, abi, wallet);
const contracta = await contract.deployContract();
 console.log(contracta.id);
 
}

1 Like

Try using beta-3 rpc

1 Like

This looks like a version mismatch. I recommend deploying to the latest testnet (beta-3). Make sure you are using the beta-3 toolchain to build the contract so that the versions match.

1 Like

thaks I try this version

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.