Skip to content

Commit

Permalink
fix hydra rpc and KSM prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut committed Jul 14, 2023
1 parent 921364b commit 48c7940
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/ui/src/components/CallInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const createUlTree = ({ name, args, decimals, unit }: CreateTreeParams) => {
return (
<ul className="params">
{Object.entries(args).map(([key, value]) => {
const destAddress = value?.Id

// in case the call was a WrapperOpaque<Call> the destination is the value and has no Id
const destAddress = value?.Id || value
// show nice dest
if (
((isBalancesTransferAlike && key === 'dest') ||
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const networkList = {
hydradx: {
chainId: 'hydradx',
explorerNetworkName: 'hydradx',
rpcUrl: 'wss://hydradx.api.onfinality.io',
rpcUrl: 'wss://hydradx-rpc.dwellir.com',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix/v/v2/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix/v/v2/graphql',
logo: hydradxSVG
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/utils/decode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export function parseGenericCall(genericCall: GenericCall, registry: Registry):
// serialize to a polkadot-js Call and parse so it is not a hex blob.
try {
const call = registry.createType('Call', argument.toHex())
newArgs['callData'] = call.toHex()
newArgs[paramName] = parseGenericCall(call, registry)
} catch {
newArgs[paramName] = argument
Expand Down
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.assethub-kusama
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#assethub-kusama
BLOCK_START=0
PREFIX=2
PREFIX=0
RPC_WS="wss://kusama-asset-hub-rpc.polkadot.io"
ARCHIVE_NAME="statemine"
CHAIN_ID='assethub-kusama'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.hydradx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#hydradx
BLOCK_START=0
PREFIX=63
RPC_WS="wss://hydradx.api.onfinality.io"
RPC_WS="wss://hydradx-rpc.dwellir.com"
ARCHIVE_NAME="hydradx"
CHAIN_ID='hydradx'

0 comments on commit 48c7940

Please sign in to comment.