Merge branch 'master' of https://github.com/status-im/nimbus
This commit is contained in:
commit
055b169e86
|
@ -58,3 +58,7 @@ proc getSender*(transaction: Transaction, output: var EthAddress): bool =
|
||||||
output = pubKey.toCanonicalAddress()
|
output = pubKey.toCanonicalAddress()
|
||||||
result = true
|
result = true
|
||||||
|
|
||||||
|
proc getSender*(transaction: Transaction): EthAddress =
|
||||||
|
## Raises error on failure to recover public key
|
||||||
|
if not transaction.getSender(result):
|
||||||
|
raise newException(ValidationError, "Could not derive sender address from transaction")
|
||||||
|
|
Loading…
Reference in New Issue