mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-22 04:21:06 +00:00
Rebrand: polkadot → pezkuwi build fixes
- Fixed TypeScript type assertion issues - Updated imports from api-augment/substrate to api-augment/bizinikiwi - Fixed imgConvert.mjs header and imports - Added @ts-expect-error for runtime-converted types - Fixed all @polkadot copyright headers to @pezkuwi
This commit is contained in:
@@ -234,7 +234,7 @@ export default function Dashboard() {
|
||||
|
||||
setRenouncingCitizenship(true);
|
||||
try {
|
||||
const { web3FromAddress } = await import('@polkadot/extension-dapp');
|
||||
const { web3FromAddress } = await import('@pezkuwi/extension-dapp');
|
||||
const injector = await web3FromAddress(selectedAccount.address);
|
||||
|
||||
if (import.meta.env.DEV) console.log('Renouncing citizenship...');
|
||||
|
||||
@@ -11,7 +11,7 @@ const CodeSnippet = ({ language, code }: { language: string, code: string }) =>
|
||||
);
|
||||
|
||||
const Developers: React.FC = () => {
|
||||
const connectCode = `import { ApiPromise, WsProvider } from '@polkadot/api';
|
||||
const connectCode = `import { ApiPromise, WsProvider } from '@pezkuwi/api';
|
||||
|
||||
// Connect to the PezkuwiChain node
|
||||
const wsProvider = new WsProvider('wss://rpc.pezkuwichain.io');
|
||||
|
||||
@@ -47,7 +47,7 @@ import {
|
||||
type CandidateInfo,
|
||||
} from '@pezkuwi/lib/welati';
|
||||
// import { handleBlockchainError, handleBlockchainSuccess } from '@pezkuwi/lib/error-handler';
|
||||
// import { web3FromAddress } from '@polkadot/extension-dapp';
|
||||
// import { web3FromAddress } from '@pezkuwi/extension-dapp';
|
||||
|
||||
export default function Elections() {
|
||||
const { api, isApiReady } = usePolkadot();
|
||||
|
||||
@@ -186,7 +186,7 @@ const NetworkPage: React.FC<NetworkPageProps> = ({
|
||||
<div className="bg-gray-950 rounded-lg p-4 border border-gray-800">
|
||||
<pre className="text-sm overflow-x-auto">
|
||||
<code className="text-gray-300">
|
||||
{`import { ApiPromise, WsProvider } from '@polkadot/api';
|
||||
{`import { ApiPromise, WsProvider } from '@pezkuwi/api';
|
||||
|
||||
const provider = new WsProvider('${endpoint}');
|
||||
const api = await ApiPromise.create({ provider });
|
||||
|
||||
Reference in New Issue
Block a user