From fcf1c8cd8b19d7b57336e686ff5b690c326efef0 Mon Sep 17 00:00:00 2001 From: Cal Bera Date: Tue, 30 Jul 2024 11:55:08 -0400 Subject: [PATCH] use Copy Signed-off-by: Cal Bera --- mod/node-api/backend/backend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/node-api/backend/backend.go b/mod/node-api/backend/backend.go index 6aca4d4805..b9b37c3788 100644 --- a/mod/node-api/backend/backend.go +++ b/mod/node-api/backend/backend.go @@ -186,7 +186,7 @@ func (b *Backend[ } b.cache.AddQueryContext(slot, queryCtx) } - st = b.sb.StateFromContext(queryCtx) + st = b.sb.StateFromContext(queryCtx).Copy() // If using height 0 for the query context, make sure to return the latest // slot.