Skip to content

Instantly share code, notes, and snippets.

View MagRelo's full-sized avatar

Matt Lovan MagRelo

View GitHub Profile
mattlovan@Matts-MacBook-Pro rara-protocol % node ./subgraph/scripts/functions/3_spendReaction.js
spending reactions...
<ref *1> Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={"reason":"cannot estimate gas; transaction may fail or may require manual gas limit","code":"UNPREDICTABLE_GAS_LIMIT","error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":49,\"error\":{\"code\":-32000,\"message\":\"execution reverted\"}}","error":{"code":-32000},"requestBody":"{\"method\":\"eth_estimateGas\",\"params\":[{\"type\":\"0x2\",\"maxFeePerGas\":\"0x9502f930\",\"maxPriorityFeePerGas\":\"0x9502f900\",\"from\":\"0x68c5119c92296a290140096b4b60205b62c6dd78\",\"to\":\"0x161354414b7ac43ded87bc1176146e9326ffc671\",\"data\":\"0x755443ce000000000000000000000000000000000000000000000000000000000001388100000000000000000000000007081c92ee04bd9ba46f18ed61e7c593f8d9095100000000000000000000000000000
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":"0x755443ce000000000000000000000000000000000000000000000000000000000001388100000000000000000000000007081c92ee04bd9ba46f18ed61e7c593f8d90951000000000000000000000000000000000000000000000000000000000000002c341c6ffe3493b3337dcde53c58aec123f85799a68d0dc4d2e46424f90bc3db0d000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000d34d4fb9b34b8d0281e4a24b4653794b266a90000000000000000000000000000000000000000000000000000000000000000
{
"contractName": "IRoyaltyEngineV1",
"abi": [
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
{
"5": [
{
"name": "goerli",
"chainId": "5",
"contracts": {
"DefaultProxyAdmin": {
"address": "0x4D1431dAf0A145454BDd58855b104F73ee967AEc",
"abi": [
{
{
"5": [
{
"name": "goerli",
"chainId": "5",
"contracts": {
"DefaultProxyAdmin": {
"address": "0x4D1431dAf0A145454BDd58855b104F73ee967AEc",
"abi": [
{