From 8f597b65f0fdb926a598ba0d9561c35eb7b955a0 Mon Sep 17 00:00:00 2001 From: Oskar Thoren Date: Sat, 6 Feb 2021 13:50:33 +0800 Subject: [PATCH] Use Nim script to get balance with hardhat task --- swap.nim | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 swap.nim diff --git a/swap.nim b/swap.nim new file mode 100644 index 0000000..a4edd79 --- /dev/null +++ b/swap.nim @@ -0,0 +1,7 @@ +import osproc + +let cmdString = "npx hardhat balance --account 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" + +let (output, errC) = osproc.execCmdEx(cmdString) + +echo output