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

Commit

Permalink
Merge pull request #32 from OffchainLabs/go-wasi-edits
Browse files Browse the repository at this point in the history
Go-wasi edits
  • Loading branch information
rachel-bousfield authored Mar 8, 2024
2 parents efcc03d + 5666569 commit 07b92d0
Showing 1 changed file with 4 additions and 5 deletions.
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

0 comments on commit 07b92d0

Please sign in to comment.