aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm
diff options
context:
space:
mode:
authorAaron Buchwald <[email protected]>2020-10-07 12:10:10 -0400
committerAaron Buchwald <[email protected]>2020-10-07 12:10:10 -0400
commitf9e07a655dd05648e3b40662939ee54c1b365755 (patch)
tree585fd6427e588a4785fde4daa9835ecd0591326d /plugin/evm
parentb443cefe38e01d60be0566ec030e42c5f89e17e2 (diff)
Fix typos
Diffstat (limited to 'plugin/evm')
-rw-r--r--plugin/evm/export_tx.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/evm/export_tx.go b/plugin/evm/export_tx.go
index 89aa30e..d099eb2 100644
--- a/plugin/evm/export_tx.go
+++ b/plugin/evm/export_tx.go
@@ -104,13 +104,13 @@ func (tx *UnsignedExportTx) SemanticVerify(
}
if len(cred.Sigs) != 1 {
- return permError{fmt.Errorf("expected one signature for EVM Input Credential, but found: %d", len(secpCredential.Sigs))}
+ return permError{fmt.Errorf("expected one signature for EVM Input Credential, but found: %d", len(cred.Sigs))}
}
- pubKey, err := f.RecoverPublicKey(tx.UnsignedBytes(), secpCredential.Sigs[0][:])
+ pubKey, err := f.RecoverPublicKey(tx.UnsignedBytes(), cred.Sigs[0][:])
if err != nil {
return permError{err}
}
- if tx.Ins[i].Address != PublicKeyToEthAddress(pubKey) {
+ if input.Address != PublicKeyToEthAddress(pubKey) {
return permError{errPublicKeySignatureMismatch}
}
}