From ec8c75299f3b3822462edf659ef431222f58e362 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Fri, 16 Jun 2023 09:53:57 +0200 Subject: [PATCH] fix: basic.NewInt returns pointer (like others) --- node/basicnode/int.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/basicnode/int.go b/node/basicnode/int.go index 3ef4653d..d8e8ac2f 100644 --- a/node/basicnode/int.go +++ b/node/basicnode/int.go @@ -18,7 +18,8 @@ var ( ) func NewInt(value int64) datamodel.Node { - return plainInt(value) + v := plainInt(value) + return &v } // NewUint creates a new uint64-backed Node which will behave as a plain Int