From aab5683afa037bd6718dd51b14b37db8eadcc043 Mon Sep 17 00:00:00 2001 From: CedarMist <134699267+CedarMist@users.noreply.github.com> Date: Mon, 17 Jun 2024 22:12:56 +0100 Subject: [PATCH] lint + readme fix --- README.md | 14 +++++++------- clients/js/scripts/proxy.ts | 6 +++++- examples/wagmi-v1/src/App.tsx | 4 ++-- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 1b6ad6f7..6a384f9c 100644 --- a/README.md +++ b/README.md @@ -13,13 +13,13 @@ This monorepo includes the source code for the following Sapphire packages: | Sub-Project | Version | Size | Downloads | | ----------------------------------------- | ---------------------------------------------- | ------------------------------------------------- | --------------------------------- | -| [TypeScript client][client-npm] | [![version][client-version]][client-npm] | [![size][client-size]][client-bundlephobia] | ![downloads][client-downloads] | -| [Go client][go-pkg] | [![version][go-version]][go-pkg] | | | -| [Solidity smart contracts][contracts-npm] | [![version][contracts-version]][contracts-npm] | | ![downloads][contracts-downloads] | -| [Hardhat plugin][hardhat-npm] | [![version][hardhat-version]][hardhat-npm] | [![size][hardhat-size]][hardhat-bundlephobia] | ![downloads][hardhat-downloads] | -| [Ethers 6.x support][ethers-v6-npm] | [![version][ethers-v6-version]][ethers-v6-npm] | [![size][ethers-v6-size]][ethers-v6-bundlephobia] | ![downloads][ethers-v6-downloads] | -| [Wagmi 2.x support][wagmi-v2-npm] | [![version][wagmi-v2-version]][wagmi-v2-npm] | [![size][wagmi-v2-size]][wagmi-v2-bundlephobia] | ![downloads][wagmi-v2-downloads] | -| [Viem 2.x support][viem-v2-npm] | [![version][viem-v2-version]][viem-v2-npm] | [![size][viem-v2-size]][viem-v2-bundlephobia] | ![downloads][viem-v2-downloads] | +| [TypeScript][client-npm] | [![version][client-version]][client-npm] | [![size][client-size]][client-bundlephobia] | ![downloads][client-downloads] | +| [Go][go-pkg] | [![version][go-version]][go-pkg] | | | +| [Solidity][contracts-npm] | [![version][contracts-version]][contracts-npm] | | ![downloads][contracts-downloads] | +| [Hardhat][hardhat-npm] | [![version][hardhat-version]][hardhat-npm] | [![size][hardhat-size]][hardhat-bundlephobia] | ![downloads][hardhat-downloads] | +| [Ethers 6.x][ethers-v6-npm] | [![version][ethers-v6-version]][ethers-v6-npm] | [![size][ethers-v6-size]][ethers-v6-bundlephobia] | ![downloads][ethers-v6-downloads] | +| [Wagmi 2.x][wagmi-v2-npm] | [![version][wagmi-v2-version]][wagmi-v2-npm] | [![size][wagmi-v2-size]][wagmi-v2-bundlephobia] | ![downloads][wagmi-v2-downloads] | +| [Viem 2.x][viem-v2-npm] | [![version][viem-v2-version]][viem-v2-npm] | [![size][viem-v2-size]][viem-v2-bundlephobia] | ![downloads][viem-v2-downloads] | [go-pkg]: https://pkg.go.dev/github.com/oasisprotocol/sapphire-paratime diff --git a/clients/js/scripts/proxy.ts b/clients/js/scripts/proxy.ts index 02dd7641..704d972e 100644 --- a/clients/js/scripts/proxy.ts +++ b/clients/js/scripts/proxy.ts @@ -2,7 +2,11 @@ import { createServer, IncomingMessage, ServerResponse } from 'node:http'; import { formatEther, toBigInt, Transaction } from 'ethers'; -import { Envelope, EnvelopeError, getBytes } from '@oasisprotocol/sapphire-paratime'; +import { + Envelope, + EnvelopeError, + getBytes, +} from '@oasisprotocol/sapphire-paratime'; import { decode as cborgDecode } from 'cborg'; diff --git a/examples/wagmi-v1/src/App.tsx b/examples/wagmi-v1/src/App.tsx index 1677d0b0..fd1e4633 100644 --- a/examples/wagmi-v1/src/App.tsx +++ b/examples/wagmi-v1/src/App.tsx @@ -71,9 +71,9 @@ function App() { const [writeTxHash, setWriteTxHash] = useState(); const [readResult, setReadResult] = useState(); const publicClient = usePublicClient()!; - const [deployReceipt,setDeployReceipt] = useState(); // = waitForTransaction({ hash: deployHash, confirmations: 1 }); + const [deployReceipt,setDeployReceipt] = useState(); - const [writeReceipt,setWriteReceipt] = useState(); // = waitForTransaction({ hash: writeTxHash, confirmations: 1 }); + const [writeReceipt,setWriteReceipt] = useState(); const { data: writeTxInfo } = useTransaction({hash: writeReceipt?.transactionHash});