mirror of
https://github.com/status-im/nim-ethers.git
synced 2025-01-12 00:24:54 +00:00
Add TODOs
This commit is contained in:
parent
d6c9151103
commit
39005a09be
@ -51,6 +51,8 @@ method provider*(wallet: Wallet): Provider =
|
||||
else:
|
||||
raise newException(WalletError, "Wallet has no provider")
|
||||
|
||||
#TODO add other methods defined in signer. Currently you have to specify nonce, gaslimit, gasPrice.
|
||||
|
||||
method populateTransaction*(wallet: Wallet, tx: transaction.Transaction): Future[transaction.Transaction] {.async.} =
|
||||
var populated = tx
|
||||
if tx.nonce.isNone:
|
||||
@ -131,3 +133,8 @@ proc signTransaction*(wallet: Wallet, tx: transaction.Transaction): Future[strin
|
||||
signTransaction(s, wallet.privateKey)
|
||||
|
||||
return "0x" & rlp.encode(s).toHex
|
||||
|
||||
|
||||
#TODO add functionality to sign messages
|
||||
|
||||
#TODO add functionality to create wallets from Mnemoniks or Keystores
|
@ -9,6 +9,10 @@ proc transfer*(erc20: Erc20, recipient: Address, amount: UInt256) {.contract.}
|
||||
|
||||
suite "Wallet":
|
||||
|
||||
#TODO add more tests. I am not sure if I am testing everything currently
|
||||
#TODO take close look at current signing tests. I am not 100% sure they are correct and work
|
||||
#TODO add setup/teardown if required. Currently doing all nonces manually
|
||||
|
||||
test "Can create Wallet with private key":
|
||||
discard Wallet.new(pk1)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user