From c2007b3df1b680db993a9fae43ce8583f1e20921 Mon Sep 17 00:00:00 2001 From: Gabriel Paradiso Date: Thu, 9 Jan 2025 17:07:30 +0100 Subject: [PATCH 1/2] fix: newTimeout should be read as Uint64 (#987) --- pkg/workflows/wasm/host/wasip1.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/workflows/wasm/host/wasip1.go b/pkg/workflows/wasm/host/wasip1.go index 08235e23e..008c0fc4c 100644 --- a/pkg/workflows/wasm/host/wasip1.go +++ b/pkg/workflows/wasm/host/wasip1.go @@ -138,7 +138,7 @@ func pollOneoff(caller *wasmtime.Caller, subscriptionptr int32, eventsptr int32, // - 8-16: timeout // - 16-24: precision // - 24-32: flag - newTimeout := binary.LittleEndian.Uint16(argBuf[8:16]) + newTimeout := binary.LittleEndian.Uint64(argBuf[8:16]) flag := binary.LittleEndian.Uint16(argBuf[24:32]) var errno Errno From 0f838d55ed83b2d8efd03c01a7fda06e0d036d49 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 9 Jan 2025 12:19:04 -0500 Subject: [PATCH 2/2] Add ReportFormatEVMAbiEncodeUnpacked (#991) --- pkg/types/llo/types.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/types/llo/types.go b/pkg/types/llo/types.go index 3951afa4a..2b53b91eb 100644 --- a/pkg/types/llo/types.go +++ b/pkg/types/llo/types.go @@ -45,6 +45,9 @@ const ( // ReportFormatRetirement is a special "capstone" report format to indicate // a retired OCR instance, and handover crucial information to a new one ReportFormatRetirement ReportFormat = 3 + // ReportFormatEVMAbiEncodeUnpacked supports encoding reports with a fixed + // schema followed by an arbitrary ABI-encoded payload + ReportFormatEVMAbiEncodeUnpacked = 4 _ ReportFormat = math.MaxUint32 // reserved )