use-ink / contracts-ui

Web application for deploying wasm smart contracts on Substrate chains that include the FRAME contracts pallet
https://contracts-ui.substrate.io/
GNU General Public License v3.0
62 stars 47 forks source link

blank page #412

Closed tnkshuuhei closed 1 year ago

tnkshuuhei commented 1 year ago

Describe the bug When uploading a specific contract, the screen goes blank and cannot be operated.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://contracts-ui.substrate.io/contract/'
  2. Click on 'Use On-Chain Contract Address' and upload contract address on shibuya and metadata.json
  3. Click the Contract listed on 'Your Contracts'
  4. page goes blank

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Environment (please complete the following information where it makes sense):

Additional context contract address ZtkfGHXkfcimYf9cXJdjxytw5Pzp3ucnZM51kBms5Eiu2PH (https://shibuya.subscan.io/account/ZtkfGHXkfcimYf9cXJdjxytw5Pzp3ucnZM51kBms5Eiu2PH)

statictype commented 1 year ago

thanks for reporting this @tnkshuuhei! could you please also post the metadata you used?

tnkshuuhei commented 1 year ago

@statictype this one

{
  "source": {
    "hash": "0xba3b3d22d48271b12ce9ab5728e271dd7b223c88c4d145771e483fe8d402836f",
    "language": "ink! 4.0.0-rc",
    "compiler": "rustc 1.66.0-nightly",
    "build_info": {
      "build_mode": "Debug",
      "cargo_contract_version": "2.0.0-rc.1",
      "rust_toolchain": "nightly-x86_64-apple-darwin",
      "wasm_opt_settings": {
        "keep_debug_symbols": false,
        "optimization_passes": "Z"
      }
    }
  },
  "contract": {
    "name": "router_contract",
    "version": "0.1.0",
    "authors": [
      "Stake Technologies <devops@stake.co.jp>"
    ]
  },
  "spec": {
    "constructors": [
      {
        "args": [
          {
            "label": "factory",
            "type": {
              "displayName": [
                "AccountId"
              ],
              "type": 0
            }
          },
          {
            "label": "wnative",
            "type": {
              "displayName": [
                "AccountId"
              ],
              "type": 0
            }
          },
          {
            "label": "pair_code_hash",
            "type": {
              "displayName": [
                "Hash"
              ],
              "type": 3
            }
          }
        ],
        "docs": [],
        "label": "new",
        "payable": false,
        "returnType": {
          "displayName": [
            "ink_primitives",
            "ConstructorResult"
          ],
          "type": 4
        },
        "selector": "0x9bae9d5e"
      }
    ],
    "docs": [],
    "events": [],
    "lang_error": {
      "displayName": [
        "ink",
        "LangError"
      ],
      "type": 6
    },
    "messages": [
      {
        "args": [
          {
            "label": "amount_out",
            "type": {
              "displayName": [
                "router_external",
                "SwapNativeForExactTokensInput1"
              ],
              "type": 7
            }
          },
          {
            "label": "path",
            "type": {
              "displayName": [
                "router_external",
                "SwapNativeForExactTokensInput2"
              ],
              "type": 8
            }
          },
          {
            "label": "to",
            "type": {
              "displayName": [
                "router_external",
                "SwapNativeForExactTokensInput3"
              ],
              "type": 0
            }
          },
          {
            "label": "deadline",
            "type": {
              "displayName": [
                "router_external",
                "SwapNativeForExactTokensInput4"
              ],
              "type": 9
            }
          }
        ],
        "docs": [],
        "label": "Router::swap_native_for_exact_tokens",
        "mutates": true,
        "payable": true,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 10
        },
        "selector": "0x1299fdf2"
      },
      {
        "args": [],
        "docs": [],
        "label": "Router::factory",
        "mutates": false,
        "payable": false,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 22
        },
        "selector": "0xac3a4c18"
      },
      {
        "args": [
          {
            "label": "token_a",
            "type": {
              "displayName": [
                "router_external",
                "RemoveLiquidityInput1"
              ],
              "type": 0
            }
          },
          {
            "label": "token_b",
            "type": {
              "displayName": [
                "router_external",
                "RemoveLiquidityInput2"
              ],
              "type": 0
            }
          },
          {
            "label": "liquidity",
            "type": {
              "displayName": [
                "router_external",
                "RemoveLiquidityInput3"
              ],
              "type": 7
            }
          },
          {
            "label": "amount_a_min",
            "type": {
              "displayName": [
                "router_external",
                "RemoveLiquidityInput4"
              ],
              "type": 7
            }
          },
          {
            "label": "amount_b_min",
            "type": {
              "displayName": [
                "router_external",
                "RemoveLiquidityInput5"
              ],
              "type": 7
            }
          },
          {
            "label": "to",
            "type": {
              "displayName": [
                "router_external",
                "RemoveLiquidityInput6"
              ],
              "type": 0
            }
          },
          {
            "label": "deadline",
            "type": {
              "displayName": [
                "router_external",
                "RemoveLiquidityInput7"
              ],
              "type": 9
            }
          }
        ],
        "docs": [],
        "label": "Router::remove_liquidity",
        "mutates": true,
        "payable": false,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 23
        },
        "selector": "0xd3abe5a3"
      },
      {
        "args": [
          {
            "label": "token",
            "type": {
              "displayName": [
                "router_external",
                "RemoveLiquidityNativeInput1"
              ],
              "type": 0
            }
          },
          {
            "label": "liquidity",
            "type": {
              "displayName": [
                "router_external",
                "RemoveLiquidityNativeInput2"
              ],
              "type": 7
            }
          },
          {
            "label": "amount_token_min",
            "type": {
              "displayName": [
                "router_external",
                "RemoveLiquidityNativeInput3"
              ],
              "type": 7
            }
          },
          {
            "label": "amount_native_min",
            "type": {
              "displayName": [
                "router_external",
                "RemoveLiquidityNativeInput4"
              ],
              "type": 7
            }
          },
          {
            "label": "to",
            "type": {
              "displayName": [
                "router_external",
                "RemoveLiquidityNativeInput5"
              ],
              "type": 0
            }
          },
          {
            "label": "deadline",
            "type": {
              "displayName": [
                "router_external",
                "RemoveLiquidityNativeInput6"
              ],
              "type": 9
            }
          }
        ],
        "docs": [],
        "label": "Router::remove_liquidity_native",
        "mutates": true,
        "payable": false,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 23
        },
        "selector": "0x3448bb5c"
      },
      {
        "args": [
          {
            "label": "amount_a",
            "type": {
              "displayName": [
                "router_external",
                "QuoteInput1"
              ],
              "type": 7
            }
          },
          {
            "label": "reserve_a",
            "type": {
              "displayName": [
                "router_external",
                "QuoteInput2"
              ],
              "type": 7
            }
          },
          {
            "label": "reserve_b",
            "type": {
              "displayName": [
                "router_external",
                "QuoteInput3"
              ],
              "type": 7
            }
          }
        ],
        "docs": [],
        "label": "Router::quote",
        "mutates": false,
        "payable": false,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 26
        },
        "selector": "0x16347b10"
      },
      {
        "args": [
          {
            "label": "token",
            "type": {
              "displayName": [
                "router_external",
                "AddLiquidityNativeInput1"
              ],
              "type": 0
            }
          },
          {
            "label": "amount_token_desired",
            "type": {
              "displayName": [
                "router_external",
                "AddLiquidityNativeInput2"
              ],
              "type": 7
            }
          },
          {
            "label": "amount_token_min",
            "type": {
              "displayName": [
                "router_external",
                "AddLiquidityNativeInput3"
              ],
              "type": 7
            }
          },
          {
            "label": "amount_native_min",
            "type": {
              "displayName": [
                "router_external",
                "AddLiquidityNativeInput4"
              ],
              "type": 7
            }
          },
          {
            "label": "to",
            "type": {
              "displayName": [
                "router_external",
                "AddLiquidityNativeInput5"
              ],
              "type": 0
            }
          },
          {
            "label": "deadline",
            "type": {
              "displayName": [
                "router_external",
                "AddLiquidityNativeInput6"
              ],
              "type": 9
            }
          }
        ],
        "docs": [],
        "label": "Router::add_liquidity_native",
        "mutates": true,
        "payable": true,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 28
        },
        "selector": "0x292d7221"
      },
      {
        "args": [
          {
            "label": "amount_out",
            "type": {
              "displayName": [
                "router_external",
                "GetAmountInInput1"
              ],
              "type": 7
            }
          },
          {
            "label": "reserve_in",
            "type": {
              "displayName": [
                "router_external",
                "GetAmountInInput2"
              ],
              "type": 7
            }
          },
          {
            "label": "reserve_out",
            "type": {
              "displayName": [
                "router_external",
                "GetAmountInInput3"
              ],
              "type": 7
            }
          }
        ],
        "docs": [],
        "label": "Router::get_amount_in",
        "mutates": false,
        "payable": false,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 26
        },
        "selector": "0xea4ac85d"
      },
      {
        "args": [
          {
            "label": "token_a",
            "type": {
              "displayName": [
                "router_external",
                "AddLiquidityInput1"
              ],
              "type": 0
            }
          },
          {
            "label": "token_b",
            "type": {
              "displayName": [
                "router_external",
                "AddLiquidityInput2"
              ],
              "type": 0
            }
          },
          {
            "label": "amount_a_desired",
            "type": {
              "displayName": [
                "router_external",
                "AddLiquidityInput3"
              ],
              "type": 7
            }
          },
          {
            "label": "amount_b_desired",
            "type": {
              "displayName": [
                "router_external",
                "AddLiquidityInput4"
              ],
              "type": 7
            }
          },
          {
            "label": "amount_a_min",
            "type": {
              "displayName": [
                "router_external",
                "AddLiquidityInput5"
              ],
              "type": 7
            }
          },
          {
            "label": "amount_b_min",
            "type": {
              "displayName": [
                "router_external",
                "AddLiquidityInput6"
              ],
              "type": 7
            }
          },
          {
            "label": "to",
            "type": {
              "displayName": [
                "router_external",
                "AddLiquidityInput7"
              ],
              "type": 0
            }
          },
          {
            "label": "deadline",
            "type": {
              "displayName": [
                "router_external",
                "AddLiquidityInput8"
              ],
              "type": 9
            }
          }
        ],
        "docs": [],
        "label": "Router::add_liquidity",
        "mutates": true,
        "payable": false,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 28
        },
        "selector": "0xa5b7d597"
      },
      {
        "args": [
          {
            "label": "amount_in",
            "type": {
              "displayName": [
                "router_external",
                "SwapExactTokensForNativeInput1"
              ],
              "type": 7
            }
          },
          {
            "label": "amount_out_min",
            "type": {
              "displayName": [
                "router_external",
                "SwapExactTokensForNativeInput2"
              ],
              "type": 7
            }
          },
          {
            "label": "path",
            "type": {
              "displayName": [
                "router_external",
                "SwapExactTokensForNativeInput3"
              ],
              "type": 8
            }
          },
          {
            "label": "to",
            "type": {
              "displayName": [
                "router_external",
                "SwapExactTokensForNativeInput4"
              ],
              "type": 0
            }
          },
          {
            "label": "deadline",
            "type": {
              "displayName": [
                "router_external",
                "SwapExactTokensForNativeInput5"
              ],
              "type": 9
            }
          }
        ],
        "docs": [],
        "label": "Router::swap_exact_tokens_for_native",
        "mutates": true,
        "payable": false,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 10
        },
        "selector": "0xcb577423"
      },
      {
        "args": [
          {
            "label": "amount_out_min",
            "type": {
              "displayName": [
                "router_external",
                "SwapExactNativeForTokensInput1"
              ],
              "type": 7
            }
          },
          {
            "label": "path",
            "type": {
              "displayName": [
                "router_external",
                "SwapExactNativeForTokensInput2"
              ],
              "type": 8
            }
          },
          {
            "label": "to",
            "type": {
              "displayName": [
                "router_external",
                "SwapExactNativeForTokensInput3"
              ],
              "type": 0
            }
          },
          {
            "label": "deadline",
            "type": {
              "displayName": [
                "router_external",
                "SwapExactNativeForTokensInput4"
              ],
              "type": 9
            }
          }
        ],
        "docs": [],
        "label": "Router::swap_exact_native_for_tokens",
        "mutates": true,
        "payable": true,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 10
        },
        "selector": "0x0a78e251"
      },
      {
        "args": [
          {
            "label": "amount_in",
            "type": {
              "displayName": [
                "router_external",
                "GetAmountOutInput1"
              ],
              "type": 7
            }
          },
          {
            "label": "reserve_in",
            "type": {
              "displayName": [
                "router_external",
                "GetAmountOutInput2"
              ],
              "type": 7
            }
          },
          {
            "label": "reserve_out",
            "type": {
              "displayName": [
                "router_external",
                "GetAmountOutInput3"
              ],
              "type": 7
            }
          }
        ],
        "docs": [],
        "label": "Router::get_amount_out",
        "mutates": false,
        "payable": false,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 26
        },
        "selector": "0x41e315fd"
      },
      {
        "args": [
          {
            "label": "amount_out",
            "type": {
              "displayName": [
                "router_external",
                "SwapTokensForExactNativeInput1"
              ],
              "type": 7
            }
          },
          {
            "label": "amount_in_max",
            "type": {
              "displayName": [
                "router_external",
                "SwapTokensForExactNativeInput2"
              ],
              "type": 7
            }
          },
          {
            "label": "path",
            "type": {
              "displayName": [
                "router_external",
                "SwapTokensForExactNativeInput3"
              ],
              "type": 8
            }
          },
          {
            "label": "to",
            "type": {
              "displayName": [
                "router_external",
                "SwapTokensForExactNativeInput4"
              ],
              "type": 0
            }
          },
          {
            "label": "deadline",
            "type": {
              "displayName": [
                "router_external",
                "SwapTokensForExactNativeInput5"
              ],
              "type": 9
            }
          }
        ],
        "docs": [],
        "label": "Router::swap_tokens_for_exact_native",
        "mutates": true,
        "payable": false,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 10
        },
        "selector": "0xb2b28f92"
      },
      {
        "args": [],
        "docs": [],
        "label": "Router::wnative",
        "mutates": false,
        "payable": false,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 22
        },
        "selector": "0x5593eab6"
      },
      {
        "args": [
          {
            "label": "amount_out",
            "type": {
              "displayName": [
                "router_external",
                "SwapTokensForExactTokensInput1"
              ],
              "type": 7
            }
          },
          {
            "label": "amount_in_max",
            "type": {
              "displayName": [
                "router_external",
                "SwapTokensForExactTokensInput2"
              ],
              "type": 7
            }
          },
          {
            "label": "path",
            "type": {
              "displayName": [
                "router_external",
                "SwapTokensForExactTokensInput3"
              ],
              "type": 8
            }
          },
          {
            "label": "to",
            "type": {
              "displayName": [
                "router_external",
                "SwapTokensForExactTokensInput4"
              ],
              "type": 0
            }
          },
          {
            "label": "deadline",
            "type": {
              "displayName": [
                "router_external",
                "SwapTokensForExactTokensInput5"
              ],
              "type": 9
            }
          }
        ],
        "docs": [],
        "label": "Router::swap_tokens_for_exact_tokens",
        "mutates": true,
        "payable": false,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 10
        },
        "selector": "0xd8eafd67"
      },
      {
        "args": [
          {
            "label": "amount_in",
            "type": {
              "displayName": [
                "router_external",
                "GetAmountsOutInput1"
              ],
              "type": 7
            }
          },
          {
            "label": "path",
            "type": {
              "displayName": [
                "router_external",
                "GetAmountsOutInput2"
              ],
              "type": 8
            }
          }
        ],
        "docs": [],
        "label": "Router::get_amounts_out",
        "mutates": false,
        "payable": false,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 10
        },
        "selector": "0x7170b8f6"
      },
      {
        "args": [
          {
            "label": "amount_out",
            "type": {
              "displayName": [
                "router_external",
                "GetAmountsInInput1"
              ],
              "type": 7
            }
          },
          {
            "label": "path",
            "type": {
              "displayName": [
                "router_external",
                "GetAmountsInInput2"
              ],
              "type": 8
            }
          }
        ],
        "docs": [],
        "label": "Router::get_amounts_in",
        "mutates": false,
        "payable": false,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 10
        },
        "selector": "0x707998fc"
      },
      {
        "args": [
          {
            "label": "amount_in",
            "type": {
              "displayName": [
                "router_external",
                "SwapExactTokensForTokensInput1"
              ],
              "type": 7
            }
          },
          {
            "label": "amount_out_min",
            "type": {
              "displayName": [
                "router_external",
                "SwapExactTokensForTokensInput2"
              ],
              "type": 7
            }
          },
          {
            "label": "path",
            "type": {
              "displayName": [
                "router_external",
                "SwapExactTokensForTokensInput3"
              ],
              "type": 8
            }
          },
          {
            "label": "to",
            "type": {
              "displayName": [
                "router_external",
                "SwapExactTokensForTokensInput4"
              ],
              "type": 0
            }
          },
          {
            "label": "deadline",
            "type": {
              "displayName": [
                "router_external",
                "SwapExactTokensForTokensInput5"
              ],
              "type": 9
            }
          }
        ],
        "docs": [],
        "label": "Router::swap_exact_tokens_for_tokens",
        "mutates": true,
        "payable": false,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 10
        },
        "selector": "0xaf0a8836"
      }
    ]
  },
  "storage": {
    "root": {
      "layout": {
        "struct": {
          "fields": [
            {
              "layout": {
                "struct": {
                  "fields": [
                    {
                      "layout": {
                        "leaf": {
                          "key": "0x00000000",
                          "ty": 0
                        }
                      },
                      "name": "factory"
                    },
                    {
                      "layout": {
                        "leaf": {
                          "key": "0x00000000",
                          "ty": 0
                        }
                      },
                      "name": "wnative"
                    },
                    {
                      "layout": {
                        "leaf": {
                          "key": "0x00000000",
                          "ty": 3
                        }
                      },
                      "name": "pair_code_hash"
                    }
                  ],
                  "name": "Data"
                }
              },
              "name": "router"
            }
          ],
          "name": "RouterContract"
        }
      },
      "root_key": "0x00000000"
    }
  },
  "types": [
    {
      "id": 0,
      "type": {
        "def": {
          "composite": {
            "fields": [
              {
                "type": 1,
                "typeName": "[u8; 32]"
              }
            ]
          }
        },
        "path": [
          "ink_primitives",
          "types",
          "AccountId"
        ]
      }
    },
    {
      "id": 1,
      "type": {
        "def": {
          "array": {
            "len": 32,
            "type": 2
          }
        }
      }
    },
    {
      "id": 2,
      "type": {
        "def": {
          "primitive": "u8"
        }
      }
    },
    {
      "id": 3,
      "type": {
        "def": {
          "composite": {
            "fields": [
              {
                "type": 1,
                "typeName": "[u8; 32]"
              }
            ]
          }
        },
        "path": [
          "ink_primitives",
          "types",
          "Hash"
        ]
      }
    },
    {
      "id": 4,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 5
                  }
                ],
                "index": 0,
                "name": "Ok"
              },
              {
                "fields": [
                  {
                    "type": 6
                  }
                ],
                "index": 1,
                "name": "Err"
              }
            ]
          }
        },
        "params": [
          {
            "name": "T",
            "type": 5
          },
          {
            "name": "E",
            "type": 6
          }
        ],
        "path": [
          "Result"
        ]
      }
    },
    {
      "id": 5,
      "type": {
        "def": {
          "tuple": []
        }
      }
    },
    {
      "id": 6,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "index": 1,
                "name": "CouldNotReadInput"
              }
            ]
          }
        },
        "path": [
          "ink_primitives",
          "LangError"
        ]
      }
    },
    {
      "id": 7,
      "type": {
        "def": {
          "primitive": "u128"
        }
      }
    },
    {
      "id": 8,
      "type": {
        "def": {
          "sequence": {
            "type": 0
          }
        }
      }
    },
    {
      "id": 9,
      "type": {
        "def": {
          "primitive": "u64"
        }
      }
    },
    {
      "id": 10,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 11
                  }
                ],
                "index": 0,
                "name": "Ok"
              },
              {
                "fields": [
                  {
                    "type": 6
                  }
                ],
                "index": 1,
                "name": "Err"
              }
            ]
          }
        },
        "params": [
          {
            "name": "T",
            "type": 11
          },
          {
            "name": "E",
            "type": 6
          }
        ],
        "path": [
          "Result"
        ]
      }
    },
    {
      "id": 11,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 12
                  }
                ],
                "index": 0,
                "name": "Ok"
              },
              {
                "fields": [
                  {
                    "type": 13
                  }
                ],
                "index": 1,
                "name": "Err"
              }
            ]
          }
        },
        "params": [
          {
            "name": "T",
            "type": 12
          },
          {
            "name": "E",
            "type": 13
          }
        ],
        "path": [
          "Result"
        ]
      }
    },
    {
      "id": 12,
      "type": {
        "def": {
          "sequence": {
            "type": 7
          }
        }
      }
    },
    {
      "id": 13,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 14,
                    "typeName": "PSP22Error"
                  }
                ],
                "index": 0,
                "name": "PSP22Error"
              },
              {
                "fields": [
                  {
                    "type": 16,
                    "typeName": "FactoryError"
                  }
                ],
                "index": 1,
                "name": "FactoryError"
              },
              {
                "fields": [
                  {
                    "type": 17,
                    "typeName": "PairError"
                  }
                ],
                "index": 2,
                "name": "PairError"
              },
              {
                "fields": [
                  {
                    "type": 20,
                    "typeName": "HelperError"
                  }
                ],
                "index": 3,
                "name": "HelperError"
              },
              {
                "fields": [
                  {
                    "type": 21,
                    "typeName": "TransferHelperError"
                  }
                ],
                "index": 4,
                "name": "TransferHelperError"
              },
              {
                "fields": [
                  {
                    "type": 6,
                    "typeName": "LangError"
                  }
                ],
                "index": 5,
                "name": "LangError"
              },
              {
                "index": 6,
                "name": "TransferError"
              },
              {
                "index": 7,
                "name": "PairNotFound"
              },
              {
                "index": 8,
                "name": "InsufficientAmount"
              },
              {
                "index": 9,
                "name": "InsufficientAAmount"
              },
              {
                "index": 10,
                "name": "InsufficientOutputAmount"
              },
              {
                "index": 11,
                "name": "ExcessiveInputAmount"
              },
              {
                "index": 12,
                "name": "InsufficientBAmount"
              },
              {
                "index": 13,
                "name": "InsufficientLiquidity"
              },
              {
                "index": 14,
                "name": "ZeroAddress"
              },
              {
                "index": 15,
                "name": "IdenticalAddresses"
              },
              {
                "index": 16,
                "name": "Expired"
              },
              {
                "index": 17,
                "name": "SubUnderFlow"
              },
              {
                "index": 18,
                "name": "MulOverFlow"
              },
              {
                "index": 19,
                "name": "DivByZero"
              },
              {
                "index": 20,
                "name": "TransferFailed"
              },
              {
                "index": 21,
                "name": "InvalidPath"
              }
            ]
          }
        },
        "path": [
          "uniswap_v2",
          "traits",
          "router",
          "RouterError"
        ]
      }
    },
    {
      "id": 14,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 15,
                    "typeName": "String"
                  }
                ],
                "index": 0,
                "name": "Custom"
              },
              {
                "index": 1,
                "name": "InsufficientBalance"
              },
              {
                "index": 2,
                "name": "InsufficientAllowance"
              },
              {
                "index": 3,
                "name": "ZeroRecipientAddress"
              },
              {
                "index": 4,
                "name": "ZeroSenderAddress"
              },
              {
                "fields": [
                  {
                    "type": 15,
                    "typeName": "String"
                  }
                ],
                "index": 5,
                "name": "SafeTransferCheckFailed"
              }
            ]
          }
        },
        "path": [
          "openbrush_contracts",
          "traits",
          "errors",
          "psp22",
          "PSP22Error"
        ]
      }
    },
    {
      "id": 15,
      "type": {
        "def": {
          "sequence": {
            "type": 2
          }
        }
      }
    },
    {
      "id": 16,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 17,
                    "typeName": "PairError"
                  }
                ],
                "index": 0,
                "name": "PairError"
              },
              {
                "index": 1,
                "name": "CallerIsNotFeeSetter"
              },
              {
                "index": 2,
                "name": "ZeroAddress"
              },
              {
                "index": 3,
                "name": "IdenticalAddresses"
              },
              {
                "index": 4,
                "name": "PairExists"
              },
              {
                "index": 5,
                "name": "PairInstantiationFailed"
              }
            ]
          }
        },
        "path": [
          "uniswap_v2",
          "traits",
          "factory",
          "FactoryError"
        ]
      }
    },
    {
      "id": 17,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 14,
                    "typeName": "PSP22Error"
                  }
                ],
                "index": 0,
                "name": "PSP22Error"
              },
              {
                "fields": [
                  {
                    "type": 18,
                    "typeName": "OwnableError"
                  }
                ],
                "index": 1,
                "name": "OwnableError"
              },
              {
                "fields": [
                  {
                    "type": 19,
                    "typeName": "ReentrancyGuardError"
                  }
                ],
                "index": 2,
                "name": "ReentrancyGuardError"
              },
              {
                "fields": [
                  {
                    "type": 6,
                    "typeName": "LangError"
                  }
                ],
                "index": 3,
                "name": "LangError"
              },
              {
                "index": 4,
                "name": "TransferError"
              },
              {
                "index": 5,
                "name": "K"
              },
              {
                "index": 6,
                "name": "InsufficientLiquidityMinted"
              },
              {
                "index": 7,
                "name": "InsufficientLiquidityBurned"
              },
              {
                "index": 8,
                "name": "InsufficientOutputAmount"
              },
              {
                "index": 9,
                "name": "InsufficientLiquidity"
              },
              {
                "index": 10,
                "name": "InsufficientInputAmount"
              },
              {
                "index": 11,
                "name": "SafeTransferFailed"
              },
              {
                "index": 12,
                "name": "InvalidTo"
              },
              {
                "index": 13,
                "name": "Overflow"
              },
              {
                "index": 14,
                "name": "Locked"
              },
              {
                "index": 15,
                "name": "SubUnderFlow1"
              },
              {
                "index": 16,
                "name": "SubUnderFlow2"
              },
              {
                "index": 17,
                "name": "SubUnderFlow3"
              },
              {
                "index": 18,
                "name": "SubUnderFlow4"
              },
              {
                "index": 19,
                "name": "SubUnderFlow5"
              },
              {
                "index": 20,
                "name": "SubUnderFlow6"
              },
              {
                "index": 21,
                "name": "SubUnderFlow7"
              },
              {
                "index": 22,
                "name": "SubUnderFlow8"
              },
              {
                "index": 23,
                "name": "SubUnderFlow9"
              },
              {
                "index": 24,
                "name": "SubUnderFlow10"
              },
              {
                "index": 25,
                "name": "SubUnderFlow11"
              },
              {
                "index": 26,
                "name": "SubUnderFlow12"
              },
              {
                "index": 27,
                "name": "SubUnderFlow13"
              },
              {
                "index": 28,
                "name": "SubUnderFlow14"
              },
              {
                "index": 29,
                "name": "MulOverFlow1"
              },
              {
                "index": 30,
                "name": "MulOverFlow2"
              },
              {
                "index": 31,
                "name": "MulOverFlow3"
              },
              {
                "index": 32,
                "name": "MulOverFlow4"
              },
              {
                "index": 33,
                "name": "MulOverFlow5"
              },
              {
                "index": 34,
                "name": "MulOverFlow6"
              },
              {
                "index": 35,
                "name": "MulOverFlow7"
              },
              {
                "index": 36,
                "name": "MulOverFlow8"
              },
              {
                "index": 37,
                "name": "MulOverFlow9"
              },
              {
                "index": 38,
                "name": "MulOverFlow10"
              },
              {
                "index": 39,
                "name": "MulOverFlow11"
              },
              {
                "index": 40,
                "name": "MulOverFlow12"
              },
              {
                "index": 41,
                "name": "MulOverFlow13"
              },
              {
                "index": 42,
                "name": "MulOverFlow14"
              },
              {
                "index": 43,
                "name": "DivByZero1"
              },
              {
                "index": 44,
                "name": "DivByZero2"
              },
              {
                "index": 45,
                "name": "DivByZero3"
              },
              {
                "index": 46,
                "name": "DivByZero4"
              },
              {
                "index": 47,
                "name": "DivByZero5"
              },
              {
                "index": 48,
                "name": "AddOverflow1"
              },
              {
                "index": 49,
                "name": "CastOverflow1"
              },
              {
                "index": 50,
                "name": "CastOverflow2"
              }
            ]
          }
        },
        "path": [
          "uniswap_v2",
          "traits",
          "pair",
          "PairError"
        ]
      }
    },
    {
      "id": 18,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "index": 0,
                "name": "CallerIsNotOwner"
              },
              {
                "index": 1,
                "name": "NewOwnerIsZero"
              }
            ]
          }
        },
        "path": [
          "openbrush_contracts",
          "traits",
          "errors",
          "ownable",
          "OwnableError"
        ]
      }
    },
    {
      "id": 19,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "index": 0,
                "name": "ReentrantCall"
              }
            ]
          }
        },
        "path": [
          "openbrush_contracts",
          "traits",
          "errors",
          "reentrancy_guard",
          "ReentrancyGuardError"
        ]
      }
    },
    {
      "id": 20,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "index": 0,
                "name": "IdenticalAddresses"
              },
              {
                "index": 1,
                "name": "ZeroAddress"
              },
              {
                "index": 2,
                "name": "InsufficientAmount"
              },
              {
                "index": 3,
                "name": "InsufficientLiquidity"
              },
              {
                "index": 4,
                "name": "DivByZero"
              },
              {
                "index": 5,
                "name": "CastOverflow"
              },
              {
                "index": 6,
                "name": "MulOverFlow"
              },
              {
                "index": 7,
                "name": "AddOverFlow"
              },
              {
                "index": 8,
                "name": "DivByZero2"
              },
              {
                "index": 9,
                "name": "CastOverflow2"
              },
              {
                "index": 10,
                "name": "InvalidPath"
              },
              {
                "index": 11,
                "name": "SubUnderFlow"
              }
            ]
          }
        },
        "path": [
          "uniswap_v2",
          "helpers",
          "helper",
          "HelperError"
        ]
      }
    },
    {
      "id": 21,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "index": 0,
                "name": "TransferFailed"
              }
            ]
          }
        },
        "path": [
          "uniswap_v2",
          "helpers",
          "transfer_helper",
          "TransferHelperError"
        ]
      }
    },
    {
      "id": 22,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 0
                  }
                ],
                "index": 0,
                "name": "Ok"
              },
              {
                "fields": [
                  {
                    "type": 6
                  }
                ],
                "index": 1,
                "name": "Err"
              }
            ]
          }
        },
        "params": [
          {
            "name": "T",
            "type": 0
          },
          {
            "name": "E",
            "type": 6
          }
        ],
        "path": [
          "Result"
        ]
      }
    },
    {
      "id": 23,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 24
                  }
                ],
                "index": 0,
                "name": "Ok"
              },
              {
                "fields": [
                  {
                    "type": 6
                  }
                ],
                "index": 1,
                "name": "Err"
              }
            ]
          }
        },
        "params": [
          {
            "name": "T",
            "type": 24
          },
          {
            "name": "E",
            "type": 6
          }
        ],
        "path": [
          "Result"
        ]
      }
    },
    {
      "id": 24,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 25
                  }
                ],
                "index": 0,
                "name": "Ok"
              },
              {
                "fields": [
                  {
                    "type": 13
                  }
                ],
                "index": 1,
                "name": "Err"
              }
            ]
          }
        },
        "params": [
          {
            "name": "T",
            "type": 25
          },
          {
            "name": "E",
            "type": 13
          }
        ],
        "path": [
          "Result"
        ]
      }
    },
    {
      "id": 25,
      "type": {
        "def": {
          "tuple": [
            7,
            7
          ]
        }
      }
    },
    {
      "id": 26,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 27
                  }
                ],
                "index": 0,
                "name": "Ok"
              },
              {
                "fields": [
                  {
                    "type": 6
                  }
                ],
                "index": 1,
                "name": "Err"
              }
            ]
          }
        },
        "params": [
          {
            "name": "T",
            "type": 27
          },
          {
            "name": "E",
            "type": 6
          }
        ],
        "path": [
          "Result"
        ]
      }
    },
    {
      "id": 27,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 7
                  }
                ],
                "index": 0,
                "name": "Ok"
              },
              {
                "fields": [
                  {
                    "type": 13
                  }
                ],
                "index": 1,
                "name": "Err"
              }
            ]
          }
        },
        "params": [
          {
            "name": "T",
            "type": 7
          },
          {
            "name": "E",
            "type": 13
          }
        ],
        "path": [
          "Result"
        ]
      }
    },
    {
      "id": 28,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 29
                  }
                ],
                "index": 0,
                "name": "Ok"
              },
              {
                "fields": [
                  {
                    "type": 6
                  }
                ],
                "index": 1,
                "name": "Err"
              }
            ]
          }
        },
        "params": [
          {
            "name": "T",
            "type": 29
          },
          {
            "name": "E",
            "type": 6
          }
        ],
        "path": [
          "Result"
        ]
      }
    },
    {
      "id": 29,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 30
                  }
                ],
                "index": 0,
                "name": "Ok"
              },
              {
                "fields": [
                  {
                    "type": 13
                  }
                ],
                "index": 1,
                "name": "Err"
              }
            ]
          }
        },
        "params": [
          {
            "name": "T",
            "type": 30
          },
          {
            "name": "E",
            "type": 13
          }
        ],
        "path": [
          "Result"
        ]
      }
    },
    {
      "id": 30,
      "type": {
        "def": {
          "tuple": [
            7,
            7,
            7
          ]
        }
      }
    }
  ],
  "version": "4"
}
peetzweg commented 1 year ago

Thanks for reporting @tnkshuuhei, I'm able to reproduce this issue and working on a fix now. Sorry for the inconvenience. ✌️

peetzweg commented 1 year ago

@tnkshuuhei we just merged #436, which resolves your issues of getting a blank screen. It was an unhandled decoding error which caused the whole app to not be displayed properly.