Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on sending transaction with Message Input #1527

Closed
LuizAsFight opened this issue Dec 14, 2023 · 0 comments · Fixed by #1531
Closed

Error on sending transaction with Message Input #1527

LuizAsFight opened this issue Dec 14, 2023 · 0 comments · Fixed by #1531
Assignees
Labels
bug Issue is a bug

Comments

@LuizAsFight
Copy link
Contributor

What version of fuels-ts are you using?

0.69.1

Steps to Reproduce

When trying to send the transaction below, it throws this error

Error: Validity(InputContractAssociatedOutputContract { index: 0 })
{
  gasPrice: <BN: 0x1>,
  maturity: 0,
  maxFee: undefined,
  witnessLimit: undefined,
  inputs: [
    {
      type: 2,
      amount: <BN: 0x0>,
      sender: '0x00000000000000000000000059f2f1fcfe2474fd5f0b9ba1e73ca90b143eb8d0',
      recipient: '0xb12658c759d8bae2cdc523ebd7aa8637912f32b1763d242ad3618448057b79cd',
      witnessIndex: 0,
      data: [Uint8Array],
      nonce: '0x000000000000000000000000000000000000000000000000000000000000000f',
      predicate: [Uint8Array],
      predicateGasUsed: <BN: 0x21>
    },
    {
      type: 1,
      txPointer: '0x0000000000000000000000000000000000000000000000000000000000000000',
      contractId: '0x70ea1e5e83c1797150a938c2ec582db374a8e1309f7093d193363b23ea7e903d'
    },
    {
      type: 0,
      id: '0x000000000000000000000000000000000000000000000000000000000000000001',
      owner: '0xc8e615a4089466174459ef19cfd257d2e17adfabff3b8f219dbb5fb4eca87c50',
      amount: '0xe8d4a51000',
      assetId: '0x0000000000000000000000000000000000000000000000000000000000000000',
      txPointer: '0x0000000000000000000000000000000000000000000000000000000000000000',
      witnessIndex: 0
    }
  ],
  outputs: [
    { type: 1, inputIndex: 1 },
    {
      type: 2,
      to: '0xc8e615a4089466174459ef19cfd257d2e17adfabff3b8f219dbb5fb4eca87c50',
      assetId: '0x0000000000000000000000000000000000000000000000000000000000000000'
    },
    { type: 3 }
  ],
  witnesses: [
    '0x8e0b456eefc1a06ab877bce869f3da1fa27a12269586fd9d5b33717b720a401d76b6b18077b4c38b199ed5d683c9bfac82bd1a79865293e1fafa7926a4df59bd'
  ],
  type: 0,
  gasLimit: <BN: 0x2710>,
  script: Uint8Array(48) [
     26, 64,  80,  0, 145,  0,  0, 80, 80, 69,  0,
     32, 80,  73, 16,  36, 97, 84,  2, 66, 97, 76,
      2, 72,  80, 80, 192, 44, 96, 69, 48, 32, 96,
     73, 64,   4, 45,  69, 84, 10, 36,  0,  0,  0,
    185, 62, 106, 61
  ],
  scriptData: Uint8Array(0) []
}

after investigating it with @luizstacio and @Torres-ssf , we figured out that the problem is in the fundWithFakeUtxo function, which changes the inputs/outputs of the transaction to make sure there're utxos to pay the tx

Expected Behavior

should send transaction

Actual Behavior

error on sending transaction

@LuizAsFight LuizAsFight added the bug Issue is a bug label Dec 14, 2023
@Torres-ssf Torres-ssf self-assigned this Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants