Use Nim script to get balance with hardhat task

This commit is contained in:
Oskar Thoren 2021-02-06 13:50:33 +08:00
parent 6dfbb217eb
commit 8f597b65f0
No known key found for this signature in database
GPG Key ID: BDB55C8C0EF29911
1 changed files with 7 additions and 0 deletions

7
swap.nim Normal file
View File

@ -0,0 +1,7 @@
import osproc
let cmdString = "npx hardhat balance --account 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
let (output, errC) = osproc.execCmdEx(cmdString)
echo output