diff --git a/packages/apps/transfer/src/pages/transfer/module-explorer/networks/[network]/chains/[chain]/modules/[module]/index.tsx b/packages/apps/transfer/src/pages/transfer/module-explorer/networks/[network]/chains/[chain]/modules/[module]/index.tsx index 46dfbf0f651..e5c72b86b87 100644 --- a/packages/apps/transfer/src/pages/transfer/module-explorer/networks/[network]/chains/[chain]/modules/[module]/index.tsx +++ b/packages/apps/transfer/src/pages/transfer/module-explorer/networks/[network]/chains/[chain]/modules/[module]/index.tsx @@ -1,5 +1,6 @@ import { ChainwebChainId } from '@kadena/chainweb-node-client'; import { StringContractDefinition } from '@kadena/pactjs-generator'; + import { kadenaConstants, Network } from '@/constants/kadena'; import { convertIntToChainId } from '@/services/utils/utils'; import dynamic from 'next/dynamic'; @@ -20,8 +21,12 @@ const ModulePage: FC = () => { Debug('kadena-transfer:pages:transfer:module-explorer:module'); const { t } = useTranslation('common'); const [pactCode, setPactCode] = useState(''); - const [functions, setFunctions] = useState | undefined>({}); - const [capabilities, setCapabilities] = useState | undefined>({}); + const [functions, setFunctions] = useState< + Record | undefined + >({}); + const [capabilities, setCapabilities] = useState< + Record | undefined + >({}); const [interfaces, setInterfaces] = useState([]); const router = useRouter(); const { network, chain, module } = router.query; @@ -53,12 +58,12 @@ const ModulePage: FC = () => { throw new Error(JSON.stringify(result.error)); } - const resultSuccess = (result as unknown) as { + const resultSuccess = result as unknown as { data: { code: string; interfaces: string[]; - } - } + }; + }; const pactCode = resultSuccess.data.code || ''; setPactCode(pactCode); diff --git a/packages/apps/transfer/src/services/faucet/index.ts b/packages/apps/transfer/src/services/faucet/index.ts index 4b270fa816c..02a0a85a283 100644 --- a/packages/apps/transfer/src/services/faucet/index.ts +++ b/packages/apps/transfer/src/services/faucet/index.ts @@ -39,8 +39,10 @@ export const fundExistingAccount = async ( new PactNumber(amount).toPactDecimal(), ), ) + //@ts-ignore .addSigner(FAUCET_PUBLIC_KEY, (withCap) => [withCap('coin.GAS')]) .addSigner(keyPair.publicKey, (withCap) => [ + //@ts-ignore withCap( 'coin.TRANSFER', SENDER_ACCOUNT,