core/vm: simplify the return values format

(cherry picked from commit d245194e77)
This commit is contained in:
Ulaş Erdoğan 2023-05-22 17:57:24 +02:00 committed by Anshal Shukla
parent ae2d3da5c1
commit 83a20d36ec

View file

@ -1138,9 +1138,5 @@ func (c *p256Verify) Run(input []byte) ([]byte, error) {
x, y := new(big.Int).SetBytes(input[96:128]), new(big.Int).SetBytes(input[128:160])
// Verify the secp256r1 signature
if result, err := secp256r1.Verify(hash, r, s, x, y); err != nil {
return nil, err
} else {
return result, nil
}
return secp256r1.Verify(hash, r, s, x, y)
}