Transaction Exceeds Total Gas ALowance Error

Hi guys! Help me to find out the cause of this error. I am using 0.64 version of Rust SDK.

transaction validation: PredicateVerificationFailed (TransactionExceedsTotalGasALowance (31323252))

Failed to match single pair: transaction validation: PredicateVerificationFailed(TransactionExceedsTotalGasAllowance(31315145))
[10:10:25][ERROR] matching error `provider: io error: warning: the fuel node version to which this provider is connected has a semver incompatible version from the one the SDK was developed against. Connected node version: 0.30.0, supported version: 0.28.0. Response errors; Transaction(0x7b1f820ac8c10d31cd41041b6044df0489c59314859fedd6ea43abdd8121308f) execution error: "Storage error: ChildError(ChildNotFound([98, 19, 185, 37, 101, 63, 99, 188, 212, 241, 19, 122, 177, 9, 237, 53, 187, 166, 20, 1, 165, 46, 174, 62, 116, 218, 35, 215, 139, 56, 94, 27]))"`
[10:10:25][ERROR] Tried to match 250 pairs, but failed: (sell, buy).
[10:10:25][ERROR] Failed to match single pair: provider: io error: warning: the fuel node version to which this provider is connected has a semver incompatible version from the one the SDK was developed against. Connected node version: 0.30.0, supported version: 0.28.0. Response errors; Transaction(0x7b1f820ac8c10d31cd41041b6044df0489c59314859fedd6ea43abdd8121308f) execution error: "Storage error: ChildError(ChildNotFound([98, 19, 185, 37, 101, 63, 99, 188, 212, 241, 19, 122, 177, 9, 237, 53, 187, 166, 20, 1, 165, 46, 174, 62, 116, 218, 35, 215, 139, 56, 94, 27]))"

Hi @PaulZhemanov ,

Can you provide the results of fuelup show so we can better diagnose your issue?

You may need to ensure the version you are working with works with the node you are connected to:

Failed to match single pair: provider: io error: warning: the fuel node version to which this provider is connected has a semver incompatible version from the one the SDK was developed against. Connected node version: 0.30.0, supported version: 0.28.0. Response errors; Transaction(0x7b1f820ac8c10d31cd41041b6044df0489c59314859fedd6ea43abdd8121308f) execution error: "Storage error: ChildError(ChildNotFound([98, 19, 185, 37, 101, 63, 99, 188, 212, 241, 19, 122, 177, 9, 237, 53, 187, 166, 20, 1, 165, 46, 174, 62, 116, 218, 35, 215, 139, 56, 94, 27]))"

Hi @nick

^^>>> fuelup show                                                                                            : 07:41:51 
Default host: x86_64-unknown-linux-gnu
fuelup home: /home/ubuntu/.fuelup

installed toolchains
--------------------
latest-x86_64-unknown-linux-gnu (default)

active toolchain
----------------
latest-x86_64-unknown-linux-gnu (default)
  forc : 0.49.3
    - forc-client
      - forc-deploy : 0.49.3
      - forc-run : 0.49.3
    - forc-crypto : 0.49.3
    - forc-doc : 0.49.3
    - forc-explore : 0.28.1
    - forc-fmt : 0.49.3
    - forc-lsp : 0.49.3
    - forc-tx : 0.49.3
    - forc-wallet : 0.4.3
  fuel-core : 0.22.4
  fuel-core-keygen : 0.22.4

fuels versions
--------------
forc : 0.54.0
forc-wallet : 0.54.0

we got this logs on Spark matcher

[08:45:48][INFO] :white_check_mark::white_check_mark::white_check_mark: Matched 19 orders

[08:45:48][INFO] SparkMatcher::match_pairs executed in 4.369491386s
[08:45:51][ERROR] matching error transaction reverted: CantMatchMany, receipts: [Call { id: 0000000000000000000000000000000000000000000000000000000000000000, to: 08ca18ed550d6229f001641d43aac58e00f9eb7e25c9bea6d33716af61e43b2a, amount: 0, asset_id: f8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07, gas: 127153, param1: 10480, param2: 10504, pc: 12296, is: 12296 }, LogData { id: 08ca18ed550d6229f001641d43aac58e00f9eb7e25c9bea6d33716af61e43b2a, ra: 0, rb: 15838754841496526215, ptr: 67086624, len: 8, digest: cd2662154e6d76b2b2b92e70c0cac3ccf534f9b74eb5b89819ec509083d00a50, pc: 48636, is: 12296, data: Some(0000000000000001) }, Revert { id: 08ca18ed550d6229f001641d43aac58e00f9eb7e25c9bea6d33716af61e43b2a, ra: 18446744073709486080, pc: 48644, is: 12296 }, ScriptResult { result: Revert, gas_used: 153821 }]

[08:45:51][ERROR] Tried to match 19 orders, but failed: (sell, buy).
[08:45:51][ERROR] Failed to match : transaction reverted: CantMatchMany, receipts: [Call { id: 0000000000000000000000000000000000000000000000000000000000000000, to: 08ca18ed550d6229f001641d43aac58e00f9eb7e25c9bea6d33716af61e43b2a, amount: 0, asset_id: f8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07, gas: 127153, param1: 10480, param2: 10504, pc: 12296, is: 12296 }, LogData { id: 08ca18ed550d6229f001641d43aac58e00f9eb7e25c9bea6d33716af61e43b2a, ra: 0, rb: 15838754841496526215, ptr: 67086624, len: 8, digest: cd2662154e6d76b2b2b92e70c0cac3ccf534f9b74eb5b89819ec509083d00a50, pc: 48636, is: 12296, data: Some(0000000000000001) }, Revert { id: 08ca18ed550d6229f001641d43aac58e00f9eb7e25c9bea6d33716af61e43b2a, ra: 18446744073709486080, pc: 48644, is: 12296 }, ScriptResult { result: Revert, gas_used: 153821 }]

[08:45:59][INFO] :white_check_mark::white_check_mark::white_check_mark: Matched 27 orders

[08:45:59][INFO] SparkMatcher::match_pairs executed in 5.884308234s
[08:46:02][ERROR] matching error transaction reverted: CantMatchMany, receipts: [Call { id: 0000000000000000000000000000000000000000000000000000000000000000, to: 08ca18ed550d6229f001641d43aac58e00f9eb7e25c9bea6d33716af61e43b2a, amount: 0, asset_id: f8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07, gas: 150534, param1: 10480, param2: 10504, pc: 12552, is: 12552 }, LogData { id: 08ca18ed550d6229f001641d43aac58e00f9eb7e25c9bea6d33716af61e43b2a, ra: 0, rb: 15838754841496526215, ptr: 67082784, len: 8, digest: cd2662154e6d76b2b2b92e70c0cac3ccf534f9b74eb5b89819ec509083d00a50, pc: 48892, is: 12552, data: Some(0000000000000001) }, Revert { id: 08ca18ed550d6229f001641d43aac58e00f9eb7e25c9bea6d33716af61e43b2a, ra: 18446744073709486080, pc: 48900, is: 12552 }, ScriptResult { result: Revert, gas_used: 176089 }]

[08:46:02][ERROR] Tried to match 27 orders, but failed: (sell, buy).
[08:46:02][ERROR] Failed to match : transaction reverted: CantMatchMany, receipts: [Call { id: 0000000000000000000000000000000000000000000000000000000000000000, to: 08ca18ed550d6229f001641d43aac58e00f9eb7e25c9bea6d33716af61e43b2a, amount: 0, asset_id: f8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07, gas: 150534, param1: 10480, param2: 10504, pc: 12552, is: 12552 }, LogData { id: 08ca18ed550d6229f001641d43aac58e00f9eb7e25c9bea6d33716af61e43b2a, ra: 0, rb: 15838754841496526215, ptr: 67082784, len: 8, digest: cd2662154e6d76b2b2b92e70c0cac3ccf534f9b74eb5b89819ec509083d00a50, pc: 48892, is: 12552, data: Some(0000000000000001) }, Revert { id: 08ca18ed550d6229f001641d43aac58e00f9eb7e25c9bea6d33716af61e43b2a, ra: 18446744073709486080, pc: 48900, is: 12552 }, ScriptResult { result: Revert, gas_used: 176089 }]

[08:46:09][INFO] :white_check_mark::white_check_mark::white_check_mark: Matched 25 orders

[08:46:09][INFO] SparkMatcher::match_pairs executed in 5.351621008s
[08:46:12][ERROR] matching error provider: io error: warning: the fuel node version to which this provider is connected has a semver incompatible version from the one the SDK was developed against. Connected node version: 0.30.0, supported version: 0.28.0. Response errors; Transaction(0x7488812fda47c4bba63717fdf7bad35b1eeb0570e68052892e300d107914697a) execution error: "Storage error: ChildError(ChildNotFound([195, 34, 59, 65, 129, 251, 111, 32, 213, 240, 177, 118, 163, 172, 9, 74, 141, 84, 38, 110, 19, 189, 197, 152, 81, 56, 189, 203, 71, 40, 106, 88]))"

[08:46:12][ERROR] Tried to match 22 orders, but failed: (sell, buy).
[08:46:12][ERROR] Failed to match : provider: io error: warning: the fuel node version to which this provider is connected has a semver incompatible version from the one the SDK was developed against. Connected node version: 0.30.0, supported version: 0.28.0. Response errors; Transaction(0x7488812fda47c4bba63717fdf7bad35b1eeb0570e68052892e300d107914697a) execution error: “Storage error: ChildError(ChildNotFound([195, 34, 59, 65, 129, 251, 111, 32, 213, 240, 177, 118, 163, 172, 9, 74, 141, 84, 38, 110, 19, 189, 197, 152, 81, 56, 189, 203, 71, 40, 106, 88]))”

[08:46:19][INFO] :white_check_mark::white_check_mark::white_check_mark: Matched 22 orders

[08:46:19][INFO] SparkMatcher::match_pairs executed in 4.856724573s
[08:46:25][INFO] :white_check_mark::white_check_mark::white_check_mark: Matched 21 orders

Hi @PaulZhemanov ,

I think I see something here Storage error: ChildError(ChildNotFound([195, 34, 59, 65, 129, 251, 111, 32, 213, 240, 177, 118, 163, 172, 9, 74, 141, 84, 38, 110, 19, 189, 197, 152, 81, 56, 189, 203, 71, 40, 106, 88])), this looks like its trying to access a storage key which doesn’t exist.

I’d recommend reviewing your storage accesses and ensuring that storage is being properly handled in the contract.