Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
refactor: use WEI constant in test (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch authored Feb 17, 2021
1 parent 975e6f9 commit 455bf5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/chains/ethereum/ethereum/tests/temp-tests.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { utils } from "@ganache/utils";
import os from "os";
import fs from "fs";
import assert from "assert";
Expand Down Expand Up @@ -232,7 +233,7 @@ describe("Random tests that are temporary!", () => {
it("transfers value", async () => {
const p = await getProvider({ miner: { gasPrice: 0 } });
const accounts = await p.send("eth_accounts");
const ONE_ETHER = 1000000000000000000n;
const ONE_ETHER = utils.WEI;
const startingBalance = 100n * ONE_ETHER;
await p.send("eth_subscribe", ["newHeads"]);
await p.send("eth_sendTransaction", [
Expand Down

0 comments on commit 455bf5e

Please sign in to comment.