Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
with the right rpc types
  • Loading branch information
Tbaut committed Jan 4, 2022
commit 4931556e47ca658b24d7c7670ce3a386d0f984e5
5 changes: 2 additions & 3 deletions ui/src/contexts/ApiContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ const ApiContext = createContext<IApiContext | undefined>(undefined)

const ApiContextProvider = ({ children, types }: ApiContextProps) => {
const WS_PROVIDER = process.env.REACT_APP_WS_PROVIDER;

const provider = new WsProvider(WS_PROVIDER);
const provider = new WsProvider(WS_PROVIDER);
const [apiPromise, setApiPromise] = useState<ApiPromise>(
new ApiPromise({ provider, types })
new ApiPromise({ provider, types, rpc })
);
const [isReady, setIsReady] = useState(false);

Expand Down