diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index f9d7cd88a..71c00d9b5 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -2059,7 +2059,6 @@ func runMEVM(ctx context.Context, b Backend, state *state.StateDB, header *types return nil, nil, nil, err } - // add some magic number and the result (TODO) computeResult = append(computeResult, magicBytes...) computeResult = append(computeResult, logsEncoded...) } diff --git a/suave/e2e/workflow_test.go b/suave/e2e/workflow_test.go index d72f3e0d8..66b6bc92f 100644 --- a/suave/e2e/workflow_test.go +++ b/suave/e2e/workflow_test.go @@ -1072,7 +1072,7 @@ func TestE2E_EmitLogs_Basic(t *testing.T) { require.Len(t, receipt.Logs, 1) require.Equal(t, receipt.Logs[0].Address, contractAddr) - data, err := exampleCallSourceContract.Abi.Events["LogCallback"].Inputs.Unpack(receipt.Logs[0].Data) + data, err := exampleCallSourceContract.Abi.Events["OffchainLogs"].Inputs.Unpack(receipt.Logs[0].Data) require.NoError(t, err) execResultBytes := data[0].([]byte) diff --git a/suave/sol/standard_peekers/example.sol b/suave/sol/standard_peekers/example.sol index fa2fc506b..1f3ad0fa1 100644 --- a/suave/sol/standard_peekers/example.sol +++ b/suave/sol/standard_peekers/example.sol @@ -45,7 +45,7 @@ contract ExampleEthCallSource { return abi.encodeWithSelector(this.emptyCallback.selector); } - event LogCallback(bytes data); + event OffchainLogs(bytes data); function emitLogCallback(uint256 num) public { // From the msg.input, the 'confidential context' sequence @@ -63,7 +63,7 @@ contract ExampleEthCallSource { dataToDecode[i] = inputData[magicSequenceIndex + i]; } - emit LogCallback(dataToDecode); + emit OffchainLogs(dataToDecode); } // Event with no indexed parameters