From 94096b9752162fea5748465086e18572c21ef4cb Mon Sep 17 00:00:00 2001 From: Harsh Date: Tue, 4 Jun 2024 19:29:53 +0530 Subject: [PATCH 1/2] fix(chain): updated nativeCurrency decimal for defichainEvmTestnet and defichainEvm --- src/chains/definitions/defichainEvm.ts | 2 +- src/chains/definitions/defichainEvmTestnet.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chains/definitions/defichainEvm.ts b/src/chains/definitions/defichainEvm.ts index 7b28f00db9..3c24cdf6aa 100644 --- a/src/chains/definitions/defichainEvm.ts +++ b/src/chains/definitions/defichainEvm.ts @@ -7,7 +7,7 @@ export const defichainEvm = /*#__PURE__*/ defineChain({ nativeCurrency: { name: 'DeFiChain', symbol: 'DFI', - decimals: 8, + decimals: 18, }, rpcUrls: { default: { diff --git a/src/chains/definitions/defichainEvmTestnet.ts b/src/chains/definitions/defichainEvmTestnet.ts index a03f588adc..7b80c84404 100644 --- a/src/chains/definitions/defichainEvmTestnet.ts +++ b/src/chains/definitions/defichainEvmTestnet.ts @@ -7,7 +7,7 @@ export const defichainEvmTestnet = /*#__PURE__*/ defineChain({ nativeCurrency: { name: 'DeFiChain', symbol: 'DFI', - decimals: 8, + decimals: 18, }, rpcUrls: { default: { From e22c41bfcf37314a7aa8ff32e6df30a43bf882f2 Mon Sep 17 00:00:00 2001 From: jxom Date: Wed, 5 Jun 2024 08:43:24 +1000 Subject: [PATCH 2/2] Create chatty-brooms-draw.md --- .changeset/chatty-brooms-draw.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/chatty-brooms-draw.md diff --git a/.changeset/chatty-brooms-draw.md b/.changeset/chatty-brooms-draw.md new file mode 100644 index 0000000000..05e882c6ed --- /dev/null +++ b/.changeset/chatty-brooms-draw.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Updated `nativeCurrency` for `defichainEvmTestnet` and `defichainEvm`.