Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Go-wasi edits #32

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/osp/OneStepProverHostIo.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021-2023, Offchain Labs, Inc.
// Copyright 2021-2024, Offchain Labs, Inc.
// For license information, see https://github.com/OffchainLabs/nitro-contracts/blob/main/LICENSE
// SPDX-License-Identifier: BUSL-1.1

Expand Down Expand Up @@ -435,7 +435,7 @@ contract OneStepProverHostIo is IOneStepProver {
mach.valueMultiStack.pushNew();
}

function proovePopCothread(MultiStack memory multi, bytes calldata proof) internal pure {
function provePopCothread(MultiStack memory multi, bytes calldata proof) internal pure {
uint256 proofOffset = 0;
bytes32 newInactiveCoThread;
bytes32 newRemaining;
Expand All @@ -453,7 +453,6 @@ contract OneStepProverHostIo is IOneStepProver {
}
multi.remainingHash = newRemaining;
multi.inactiveStackHash = newInactiveCoThread;
return;
}

function executePopCoThread(
Expand All @@ -473,8 +472,8 @@ contract OneStepProverHostIo is IOneStepProver {
mach.status = MachineStatus.ERRORED;
return;
}
proovePopCothread(mach.valueMultiStack, proof);
proovePopCothread(mach.frameMultiStack, proof[64:]);
provePopCothread(mach.valueMultiStack, proof);
provePopCothread(mach.frameMultiStack, proof[64:]);
}

function executeSwitchCoThread(
Expand Down
Loading