Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save excalq/1bda1420c6c6ce43b19fa1d3a4b260d0 to your computer and use it in GitHub Desktop.
Save excalq/1bda1420c6c6ce43b19fa1d3a4b260d0 to your computer and use it in GitHub Desktop.
Moonbase -> Bobabase NFT Bridge (Revert due to lack of registration)
$ npx ts-node scripts/bridge.ts --destination bobabase --ship 1287
Teleporting ship from Moonbase Alpha to Bobabase
/home/arthur/Documents/_Partavate/code/experimental/bobabeam/evm/node_modules/@ethersproject/logger/src.ts/index.ts:261
const error: any = new Error(message);
^
<ref *1> Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (error={"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"error\":{\"code\":-32603,\"message\":\"VM Exception while processing transaction: revert Can't Find L2 NFT Contract\",\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001a43616e27742046696e64204c32204e465420436f6e7472616374000000000000\"},\"id\":88}","error":{"code":-32603,"data":"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001a43616e27742046696e64204c32204e465420436f6e7472616374000000000000"},"requestBody":"{\"method\":\"eth_estimateGas\",\"params\":[{\"type\":\"0x2\",\"maxFeePerGas\":\"0xd09dc300\",\"maxPriorityFeePerGas\":\"0x59682f00\",\"from\":\"0x51f5c4154854c7dc64642a8ee79daadb3da57569\",\"to\":\"0xf5acb091936715ecac49d5759b4801703a175387\",\"data\":\"0x7a87d1dd000000000000000000000000b8f9ef0223713777b6cd722dd299febeeb71012d0000000000000000000000000000000000000000000000000000000000000507000000000000000000000000000000000000000000000000000000000098967f\"}],\"id\":88,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://moonbase-alpha.public.blastapi.io"}, tx={"data":"0x7a87d1dd000000000000000000000000b8f9ef0223713777b6cd722dd299febeeb71012d0000000000000000000000000000000000000000000000000000000000000507000000000000000000000000000000000000000000000000000000000098967f","to":{},"from":"0x51F5c4154854c7Dc64642a8eE79DAAdB3da57569","type":2,"maxFeePerGas":{"type":"BigNumber","hex":"0xd09dc300"},"maxPriorityFeePerGas":{"type":"BigNumber","hex":"0x59682f00"},"nonce":{},"gasLimit":{},"chainId":{}}, code=UNPREDICTABLE_GAS_LIMIT, version=abstract-signer/5.6.2)
at Logger.makeError (/home/arthur/Documents/_Partavate/code/experimental/bobabeam/evm/node_modules/@ethersproject/logger/src.ts/index.ts:261:28)
at Logger.throwError (/home/arthur/Documents/_Partavate/code/experimental/bobabeam/evm/node_modules/@ethersproject/logger/src.ts/index.ts:273:20)
at /home/arthur/Documents/_Partavate/code/experimental/bobabeam/evm/node_modules/@ethersproject/abstract-signer/src.ts/index.ts:301:31
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Promise.all (index 7) {
reason: 'cannot estimate gas; transaction may fail or may require manual gas limit',
code: 'UNPREDICTABLE_GAS_LIMIT',
error: Error: processing response error (body="{\"jsonrpc\":\"2.0\",\"error\":{\"code\":-32603,\"message\":\"VM Exception while processing transaction: revert Can't Find L2 NFT Contract\",\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001a43616e27742046696e64204c32204e465420436f6e7472616374000000000000\"},\"id\":88}", error={"code":-32603,"data":"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001a43616e27742046696e64204c32204e465420436f6e7472616374000000000000"}, requestBody="{\"method\":\"eth_estimateGas\",\"params\":[{\"type\":\"0x2\",\"maxFeePerGas\":\"0xd09dc300\",\"maxPriorityFeePerGas\":\"0x59682f00\",\"from\":\"0x51f5c4154854c7dc64642a8ee79daadb3da57569\",\"to\":\"0xf5acb091936715ecac49d5759b4801703a175387\",\"data\":\"0x7a87d1dd000000000000000000000000b8f9ef0223713777b6cd722dd299febeeb71012d0000000000000000000000000000000000000000000000000000000000000507000000000000000000000000000000000000000000000000000000000098967f\"}],\"id\":88,\"jsonrpc\":\"2.0\"}", requestMethod="POST", url="https://moonbase-alpha.public.blastapi.io", code=SERVER_ERROR, version=web/5.6.1)
at Logger.makeError (/home/arthur/Documents/_Partavate/code/experimental/bobabeam/evm/node_modules/@ethersproject/logger/src.ts/index.ts:261:28)
at Logger.throwError (/home/arthur/Documents/_Partavate/code/experimental/bobabeam/evm/node_modules/@ethersproject/logger/src.ts/index.ts:273:20)
at /home/arthur/Documents/_Partavate/code/experimental/bobabeam/evm/node_modules/@ethersproject/web/src.ts/index.ts:329:28
at step (/home/arthur/Documents/_Partavate/code/experimental/bobabeam/evm/node_modules/@ethersproject/web/lib/index.js:33:23)
at Object.next (/home/arthur/Documents/_Partavate/code/experimental/bobabeam/evm/node_modules/@ethersproject/web/lib/index.js:14:53)
at fulfilled (/home/arthur/Documents/_Partavate/code/experimental/bobabeam/evm/node_modules/@ethersproject/web/lib/index.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
reason: 'processing response error',
code: 'SERVER_ERROR',
body: `{"jsonrpc":"2.0","error":{"code":-32603,"message":"VM Exception while processing transaction: revert Can't Find L2 NFT Contract","data":"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001a43616e27742046696e64204c32204e465420436f6e7472616374000000000000"},"id":88}`,
error: Error: VM Exception while processing transaction: revert Can't Find L2 NFT Contract
at getResult (/home/arthur/Documents/_Partavate/code/experimental/bobabeam/evm/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:142:28)
at processJsonFunc (/home/arthur/Documents/_Partavate/code/experimental/bobabeam/evm/node_modules/@ethersproject/web/src.ts/index.ts:371:22)
at /home/arthur/Documents/_Partavate/code/experimental/bobabeam/evm/node_modules/@ethersproject/web/src.ts/index.ts:308:42
at step (/home/arthur/Documents/_Partavate/code/experimental/bobabeam/evm/node_modules/@ethersproject/web/lib/index.js:33:23)
at Object.next (/home/arthur/Documents/_Partavate/code/experimental/bobabeam/evm/node_modules/@ethersproject/web/lib/index.js:14:53)
at fulfilled (/home/arthur/Documents/_Partavate/code/experimental/bobabeam/evm/node_modules/@ethersproject/web/lib/index.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
code: -32603,
data: '0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001a43616e27742046696e64204c32204e465420436f6e7472616374000000000000'
},
requestBody: '{"method":"eth_estimateGas","params":[{"type":"0x2","maxFeePerGas":"0xd09dc300","maxPriorityFeePerGas":"0x59682f00","from":"0x51f5c4154854c7dc64642a8ee79daadb3da57569","to":"0xf5acb091936715ecac49d5759b4801703a175387","data":"0x7a87d1dd000000000000000000000000b8f9ef0223713777b6cd722dd299febeeb71012d0000000000000000000000000000000000000000000000000000000000000507000000000000000000000000000000000000000000000000000000000098967f"}],"id":88,"jsonrpc":"2.0"}',
requestMethod: 'POST',
url: 'https://moonbase-alpha.public.blastapi.io'
},
tx: {
data: '0x7a87d1dd000000000000000000000000b8f9ef0223713777b6cd722dd299febeeb71012d0000000000000000000000000000000000000000000000000000000000000507000000000000000000000000000000000000000000000000000000000098967f',
to: Promise { '0xf5aCb091936715eCAC49d5759b4801703a175387' },
from: '0x51F5c4154854c7Dc64642a8eE79DAAdB3da57569',
type: 2,
maxFeePerGas: BigNumber { _hex: '0xd09dc300', _isBigNumber: true },
maxPriorityFeePerGas: BigNumber { _hex: '0x59682f00', _isBigNumber: true },
nonce: Promise { 56 },
gasLimit: Promise { <rejected> [Circular *1] },
chainId: Promise { 1287 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment