Skip to content

Instantly share code, notes, and snippets.

@MagRelo
Created April 13, 2022 15:07
Show Gist options
  • Save MagRelo/9e55a779dee87c80b25d9fa3120ddaa2 to your computer and use it in GitHub Desktop.
Save MagRelo/9e55a779dee87c80b25d9fa3120ddaa2 to your computer and use it in GitHub Desktop.
mattlovan@Matts-MacBook-Pro rara-protocol % node ./subgraph/scripts/functions/3_spendReaction.js
spending reactions...
Error: transaction failed (transactionHash="0xb3384d4874b7315dc4d7a167247b0dff9144363aa64e646834494214a7dd15c4", transaction={"type":2,"chainId":80001,"nonce":105,"maxPriorityFeePerGas":{"type":"BigNumber","hex":"0x9502f900"},"maxFeePerGas":{"type":"BigNumber","hex":"0x012089f824"},"gasPrice":null,"gasLimit":{"type":"BigNumber","hex":"0x0f4240"},"to":"0x161354414b7aC43deD87Bc1176146e9326ffc671","value":{"type":"BigNumber","hex":"0x00"},"data":"0x755443ce000000000000000000000000000000000000000000000000000000000001388100000000000000000000000007081c92ee04bd9ba46f18ed61e7c593f8d90951000000000000000000000000000000000000000000000000000000000000002c341c6ffe3493b3337dcde53c58aec123f85799a68d0dc4d2e46424f90bc3db0d000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000d34d4fb9b34b8d0281e4a24b4653794b266a9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000002e516d563238387a4874744a4a7750425a4157334c393232644279705771756b464e577a656b543663687857344375000000000000000000000000000000000000","accessList":[],"hash":"0xb3384d4874b7315dc4d7a167247b0dff9144363aa64e646834494214a7dd15c4","v":1,"r":"0xee5465261201056d57c758784b4705b949a6ba803655f78db201effd498c8d18","s":"0x1c60632648d8efa690498d1c61a532434b7a530f301f44c3f4febb1ff9132368","from":"0x68c5119c92296a290140096b4b60205b62c6dD78","confirmations":0}, receipt={"to":"0x161354414b7aC43deD87Bc1176146e9326ffc671","from":"0x68c5119c92296a290140096b4b60205b62c6dD78","contractAddress":null,"transactionIndex":144,"gasUsed":{"type":"BigNumber","hex":"0x7ace"},"logsBloom":"0x00000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000800000000000000000000100000000004000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000080000000000000100040200000000000000000000000000000000000000000000000000000000000004000000000000000000001000000000000000000000000000000100040000000000000000000000000000000000000000000000000000000000000000000100000","blockHash":"0x9a38efd34b051f073494b042662b42d0f04d138baa6dfae56443fb30e8272aed","transactionHash":"0xb3384d4874b7315dc4d7a167247b0dff9144363aa64e646834494214a7dd15c4","logs":[{"transactionIndex":144,"blockNumber":25918665,"transactionHash":"0xb3384d4874b7315dc4d7a167247b0dff9144363aa64e646834494214a7dd15c4","address":"0x0000000000000000000000000000000000001010","topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000068c5119c92296a290140096b4b60205b62c6dd78","0x000000000000000000000000be188d6641e8b680743a4815dfa0f6208038960f"],"data":"0x0000000000000000000000000000000000000000000000000000477b530e5e000000000000000000000000000000000000000000000000000647405f43b83417000000000000000000000000000000000000000000001080443fd8610a7f9a3e0000000000000000000000000000000000000000000000000646f8e3f0a9d61700000000000000000000000000000000000000000000108044401fdc5d8df83e","logIndex":358,"blockHash":"0x9a38efd34b051f073494b042662b42d0f04d138baa6dfae56443fb30e8272aed"}],"blockNumber":25918665,"confirmations":1,"cumulativeGasUsed":{"type":"BigNumber","hex":"0x870f82"},"effectiveGasPrice":{"type":"BigNumber","hex":"0xd8ea77df"},"status":0,"type":2,"byzantium":true}, code=CALL_EXCEPTION, version=providers/5.5.3)
at Logger.makeError (/Users/mattlovan/Projects/rara/rara-protocol/node_modules/@ethersproject/logger/lib/index.js:199:21)
at Logger.throwError (/Users/mattlovan/Projects/rara/rara-protocol/node_modules/@ethersproject/logger/lib/index.js:208:20)
at JsonRpcProvider.<anonymous> (/Users/mattlovan/Projects/rara/rara-protocol/node_modules/@ethersproject/providers/lib/base-provider.js:1506:36)
at step (/Users/mattlovan/Projects/rara/rara-protocol/node_modules/@ethersproject/providers/lib/base-provider.js:48:23)
at Object.next (/Users/mattlovan/Projects/rara/rara-protocol/node_modules/@ethersproject/providers/lib/base-provider.js:29:53)
at fulfilled (/Users/mattlovan/Projects/rara/rara-protocol/node_modules/@ethersproject/providers/lib/base-provider.js:20:58) {
reason: 'transaction failed',
code: 'CALL_EXCEPTION',
transactionHash: '0xb3384d4874b7315dc4d7a167247b0dff9144363aa64e646834494214a7dd15c4',
transaction: {
type: 2,
chainId: 80001,
nonce: 105,
maxPriorityFeePerGas: BigNumber { _hex: '0x9502f900', _isBigNumber: true },
maxFeePerGas: BigNumber { _hex: '0x012089f824', _isBigNumber: true },
gasPrice: null,
gasLimit: BigNumber { _hex: '0x0f4240', _isBigNumber: true },
to: '0x161354414b7aC43deD87Bc1176146e9326ffc671',
value: BigNumber { _hex: '0x00', _isBigNumber: true },
data: '0x755443ce000000000000000000000000000000000000000000000000000000000001388100000000000000000000000007081c92ee04bd9ba46f18ed61e7c593f8d90951000000000000000000000000000000000000000000000000000000000000002c341c6ffe3493b3337dcde53c58aec123f85799a68d0dc4d2e46424f90bc3db0d000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000d34d4fb9b34b8d0281e4a24b4653794b266a9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000002e516d563238387a4874744a4a7750425a4157334c393232644279705771756b464e577a656b543663687857344375000000000000000000000000000000000000',
accessList: [],
hash: '0xb3384d4874b7315dc4d7a167247b0dff9144363aa64e646834494214a7dd15c4',
v: 1,
r: '0xee5465261201056d57c758784b4705b949a6ba803655f78db201effd498c8d18',
s: '0x1c60632648d8efa690498d1c61a532434b7a530f301f44c3f4febb1ff9132368',
from: '0x68c5119c92296a290140096b4b60205b62c6dD78',
confirmations: 0,
wait: [Function (anonymous)]
},
receipt: {
to: '0x161354414b7aC43deD87Bc1176146e9326ffc671',
from: '0x68c5119c92296a290140096b4b60205b62c6dD78',
contractAddress: null,
transactionIndex: 144,
gasUsed: BigNumber { _hex: '0x7ace', _isBigNumber: true },
logsBloom: '0x00000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000800000000000000000000100000000004000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000080000000000000100040200000000000000000000000000000000000000000000000000000000000004000000000000000000001000000000000000000000000000000100040000000000000000000000000000000000000000000000000000000000000000000100000',
blockHash: '0x9a38efd34b051f073494b042662b42d0f04d138baa6dfae56443fb30e8272aed',
transactionHash: '0xb3384d4874b7315dc4d7a167247b0dff9144363aa64e646834494214a7dd15c4',
logs: [ [Object] ],
blockNumber: 25918665,
confirmations: 1,
cumulativeGasUsed: BigNumber { _hex: '0x870f82', _isBigNumber: true },
effectiveGasPrice: BigNumber { _hex: '0xd8ea77df', _isBigNumber: true },
status: 0,
type: 2,
byzantium: true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment