Skip to content

Commit 835a820

Browse files
committed
fix: unit scaling
Signed-off-by: Tomás Migone <[email protected]>
1 parent cf9e754 commit 835a820

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/toolshed/src/core/accounts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { setGRTBalance } from '../hardhat'
2+
import { TEN_MILLION } from './constants'
23
import { toBeHex } from 'ethers'
34

45
import type { Addressable } from 'ethers'
@@ -89,7 +90,7 @@ async function _getAccount(provider: HardhatEthersProvider, accountIndex: number
8990
const chainId = await provider.send('eth_chainId', []) as string
9091
const isLocal = [toBeHex(1337), toBeHex(31337)].includes(toBeHex(BigInt(chainId)))
9192
if (grtTokenAddress && isLocal) {
92-
await setGRTBalance(provider, grtTokenAddress, account.address, 10_000_000n)
93+
await setGRTBalance(provider, grtTokenAddress, account.address, TEN_MILLION)
9394
}
9495

9596
return account

0 commit comments

Comments
 (0)