Search code examples
substratepolkadotpolkadot-js

Use custom Substrate node name (Substrate FRAME pallet + Polkadot/Substrate frontend)


Scenario: You want to submit an extrinsic to your custom Substrate node based on the substrate-node-template by using the Polkadot/Substrate frontend. You have renamed the Substrate node either manually by carefully searching and replacing all occurences of substarte-node-template or by using danforbes renaming script

Problem: When you try to submit an extrinsic to your Substrate node using the Polkadot/Substrate frontend, you receive an error message in the frontend:

1002: Verification Error: Execution: Could not convert parameter tx between node and runtime: No such variant in enum MultiSignature: RuntimeApi, Execution: Could not convert parameter tx between node and runtime: No such variant in enum MultiSignature


Solution

  • Solution: as JoshOrndorff stated in a Github issue:

    [...] The problem now is because the UI needs to know the types your node uses. When you use the node template, the UI detects it, and uses the appropriate types for you. Sine you have renamed your template, the UI cannot tell that it is still basically the node template, so you need to add your own custom types. In the Apps UI, go the the developer settings, and enter:

    {
       "Address": "AccountId",
       "LookupSource": "AccountId"
    }