diff --git a/web3.nim b/web3.nim index df44d07..8b5997a 100644 --- a/web3.nim +++ b/web3.nim @@ -2,7 +2,7 @@ import macros, strutils, options, math, json, tables, uri from os import DirSep import nimcrypto, stint, httputils, chronicles, chronos, json_rpc/rpcclient, - byteutils, eth/keys + stew/byteutils, eth/keys import web3/[ethtypes, ethprocs, conversions, ethhexstrings, transaction_signing] diff --git a/web3.nimble b/web3.nimble index 2abf788..2a6f9a1 100644 --- a/web3.nimble +++ b/web3.nimble @@ -12,7 +12,7 @@ requires "stint" requires "chronicles" requires "chronos" requires "json_rpc" -requires "byteutils" +requires "stew" requires "eth" diff --git a/web3/conversions.nim b/web3/conversions.nim index 86c4852..a103abf 100644 --- a/web3/conversions.nim +++ b/web3/conversions.nim @@ -1,4 +1,4 @@ -import json, options, stint, byteutils, strutils +import json, options, stint, stew/byteutils, strutils from json_rpc/rpcserver import expect import ethtypes, ethhexstrings diff --git a/web3/ethtypes.nim b/web3/ethtypes.nim index f6364ac..31cba70 100644 --- a/web3/ethtypes.nim +++ b/web3/ethtypes.nim @@ -1,5 +1,5 @@ import options, json -import stint, byteutils +import stint, stew/byteutils type SyncObject* = object @@ -168,4 +168,4 @@ proc `==`*[N](a, b: DynamicBytes[N]): bool {.inline.} = array[N, byte](a) == array[N, byte](b) proc `==`*(a, b: Address): bool {.inline.} = - array[20, byte](a) == array[20, byte](b) \ No newline at end of file + array[20, byte](a) == array[20, byte](b) diff --git a/web3/transaction_signing.nim b/web3/transaction_signing.nim index af7bba7..eb6fcde 100644 --- a/web3/transaction_signing.nim +++ b/web3/transaction_signing.nim @@ -1,6 +1,6 @@ import options, - ethtypes, byteutils, stint, + ethtypes, stew/byteutils, stint, eth/[common, keys, rlp], eth/common/transaction proc signTransaction(tr: var Transaction, pk: PrivateKey) =