mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-08 05:54:29 +00:00
Co-authored-by: Aaron Chen <aaronchen.lisp@gmail.com>
This commit is contained in:
parent
bef85ec37b
commit
f0b523d635
1 changed files with 1 additions and 5 deletions
|
|
@ -172,11 +172,7 @@ func opByte(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) {
|
||||||
|
|
||||||
func opAddmod(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) {
|
func opAddmod(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) {
|
||||||
x, y, z := scope.Stack.pop(), scope.Stack.pop(), scope.Stack.peek()
|
x, y, z := scope.Stack.pop(), scope.Stack.pop(), scope.Stack.peek()
|
||||||
if z.IsZero() {
|
z.AddMod(&x, &y, z)
|
||||||
z.Clear()
|
|
||||||
} else {
|
|
||||||
z.AddMod(&x, &y, z)
|
|
||||||
}
|
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue