# Can't sign tx with wallet on beta4

**URL:** <https://forum.fuel.network/t/cant-sign-tx-with-wallet-on-beta4/3032>\
**Category:** Fuel Wallet\
**Created:** [September 1, 2023, 6:06pm UTC](https://forum.fuel.network/t/cant-sign-tx-with-wallet-on-beta4/3032 "2023-09-01T18:06:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sway](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/sway/32/103_2.png) [@sway](https://forum.fuel.network/u/sway)\
**Post date:** [September 1, 2023, 6:06pm UTC](https://forum.fuel.network/t/cant-sign-tx-with-wallet-on-beta4/3032/1 "2023-09-01T18:06:35Z")

</div>

Hi guys!

I have updated my faucet page on SwayLend app to multi token contract and `mint` fn doesn’t work when I use wallet instance, it fails with next error and not even open extension to sign tx

```auto
Error: Unknown field "status" on type "Message".: {"response":{"data":null,"errors":[{"message":"Unknown field \"status\" on type \"Message\".","locations":[{"line":28,"column":3}]},{"message":"Unknown field \"status\" on type \"Coin\".","locations":[{"line":18,"column":3}]},{"message":"Unknown field \"resourcesToSpend\" on type \"Query\". Did you mean \"coinsToSpend\"?","locations":[{"line":2,"column":3}]}],"status":200,"headers":{"map":{"content-type":"application/json"}}},"request":{"query":"query getResourcesToSpend($owner: Address!, $queryPerAsset: [SpendQueryElementInput!]!, $excludedIds: ExcludeInput) {\n resourcesToSpend(\n owner: $owner\n queryPerAsset: $queryPerAsset\n excludedIds: $excludedIds\n ) {\n ...coinFragment\n ...messageFragment\n }\n}\n\nfragment coinFragment on Coin {\n utxoId\n owner\n amount\n assetId\n maturity\n coinStatus: status\n blockCreated\n}\n\nfragment messageFragment on Message {\n amount\n sender\n recipient\n data\n nonce\n messageStatus: status\n daHeight\n}","variables":{"owner":"0xf544349bc57a4fb57e9af1de2c4415a39b57856fe8c76263f040806095734ec1","queryPerAsset":[{"assetId":"0x0000000000000000000000000000000000000000000000000000000000000000","amount":"2"}],"excludedIds":{"messages":[],"utxos":[]}}}}

```

I tried to change network to beta3 and it fails ofc too, because there is no tokens deployed with my address, but it at least opens wallet page where I can sign tx

I tried to pass wallet instance made with privateKey and it worked.

```auto
const wallet = Wallet.fromPrivateKey(
        process.env.REACT_APP_SECRET!,
        provider
      );

```

Multi token code: [GitHub - compolabs/src-20 at token-factory](https://github.com/compolabs/src-20/tree/token-factory)

Code with mint fn call:

```auto
import { TokenFactoryAbi__factory } from "@src/contracts";
import { hashMessage } from "fuels";

 const wallet = window.fuel.getWallet(this.address);

 const tokenFactoryContract = TokenFactoryAbi__factory.connect(
      tokenFactory,
      wallet
    );
      const hash = hashMessage("USDC"); //0x8591ee9090c0c02ca1f103cb637131d8f358870aba145245ff083e138fdd705b
      const userAddress = wallet.address.toB256();//0xf544349bc57a4fb57e9af1de2c4415a39b57856fe8c76263f040806095734ec1
 const { transactionResult } = await tokenFactoryContract.functions
        .mint({ value: userAddress }, hash, "1000000")
        .txParams({ gasPrice: 1 })
        .call();

```

Token Factory deployed on beta4 :0xd8c627b9cd9ee42e2c2bd9793b13bc9f8e9aad32e25a99ea574f23c1dd17685a

Token Factory Abi :[https://github.com/compolabs/sway-lend/blob/beta-4/frontend/src/contracts/TokenFactoryAbi.d.ts](https://github.com/compolabs/sway-lend/blob/beta-4/frontend/src/contracts/TokenFactoryAbi.d.ts)

---

<div class="post-metadata">

**Author:** ![sandusky](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/sandusky/32/1313_2.png) [@sandusky](https://forum.fuel.network/u/sandusky)\
**Post date:** [September 1, 2023, 6:13pm UTC](https://forum.fuel.network/t/cant-sign-tx-with-wallet-on-beta4/3032/2 "2023-09-01T18:13:09Z")

</div>

Hi there!  
It seems like a client version issue.  
Please try again using `"@fuel-wallet/sdk": "^0.12.2",` & [https://next-wallet.fuel.network/app/fuel-wallet.zip](https://next-wallet.fuel.network/app/fuel-wallet.zip)

---

<div class="post-metadata">

**Author:** ![sway](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/sway/32/103_2.png) [@sway](https://forum.fuel.network/u/sway)\
**Post date:** [September 1, 2023, 6:21pm UTC](https://forum.fuel.network/t/cant-sign-tx-with-wallet-on-beta4/3032/3 "2023-09-01T18:21:06Z")

</div>

worked, thanks a lot!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/fuel/original/2X/5/57d5a345cc15a64b636e0d56e042857f8a0e80b1.png) [@system](https://forum.fuel.network/u/system)\
**Post date:** [September 22, 2023, 2:21pm UTC](https://forum.fuel.network/t/cant-sign-tx-with-wallet-on-beta4/3032/4 "2023-09-22T14:21:08Z")

</div>

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