diff --git a/gnovm/pkg/gnolang/realm.go b/gnovm/pkg/gnolang/realm.go index 5f6a532cbc0..5090bb510f3 100644 --- a/gnovm/pkg/gnolang/realm.go +++ b/gnovm/pkg/gnolang/realm.go @@ -1127,7 +1127,9 @@ func copyValueWithRefs(parent Object, val Value) Value { Base: toRefValue(parent, cv.Base), Offset: cv.Offset, Length: cv.Length, - Maxcap: cv.Maxcap, + // Force capacity to length, because we have issues with store when they + // are differents. + Maxcap: cv.Length, } case *StructValue: fields := make([]TypedValue, len(cv.Fields))