diff --git a/src/api/connect.ts b/src/api/connect.ts index dbb9a46d..1161e9bc 100644 --- a/src/api/connect.ts +++ b/src/api/connect.ts @@ -12,7 +12,15 @@ export const connect = (endpoint: string, dispatch: React.Dispatch) = dispatch({ type: 'CONNECT_INIT' }); const provider = new WsProvider(endpoint); - const _api = new ApiPromise({ provider }); + const _api = new ApiPromise({ + provider, + types: { + DispatchErrorModule: { + index: 'u8', + error: '[u8; 4]', + }, + }, + }); // Set listeners for disconnection and reconnection event. _api.on('connected', async () => { diff --git a/src/ui/components/Transactions.tsx b/src/ui/components/Transactions.tsx index f35586d6..71d2b158 100644 --- a/src/ui/components/Transactions.tsx +++ b/src/ui/components/Transactions.tsx @@ -52,11 +52,7 @@ export function Transactions({ ); })} - dismiss(parseInt(id))} - /> + dismiss(parseInt(id))} /> )}