add returnStack to Computation

This commit is contained in:
jangko 2020-11-25 16:26:24 +07:00
parent 6e122f1878
commit e2cd9b20fa
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
2 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,7 @@ proc newComputation*(vmState: BaseVMState, message: Message, salt= 0.u256): Comp
result.msg = message
result.memory = Memory()
result.stack = newStack()
result.returnStack = newStack()
result.gasMeter.init(message.gas)
result.touchedAccounts = initHashSet[EthAddress]()
result.suicides = initHashSet[EthAddress]()

View File

@ -68,6 +68,7 @@ type
msg*: Message
memory*: Memory
stack*: Stack
returnStack*: Stack
gasMeter*: GasMeter
code*: CodeStream
output*: seq[byte]