Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
b28953e
Fix authorization for implicit references
SupunS Oct 16, 2025
c1a9313
improve and extend tests
turbolent Oct 16, 2025
fac3821
also handle optional references, e.g. for dictionaries
turbolent Oct 16, 2025
d4b81bb
add test for access of reference field on composite reference
turbolent Oct 16, 2025
fd4238a
Fix authorization for for-loop-variable
SupunS Oct 17, 2025
b8ef406
Merge branch 'bastian/fix-member-access' into supun/fix-member-access
turbolent Oct 17, 2025
5c4dcc4
pass isImplicit down when recursing
turbolent Oct 17, 2025
f4b23ab
improve InvalidMemberReferenceError
turbolent Oct 17, 2025
e3b480e
Merge branch 'bastian/fix-member-access' into supun/fix-member-access
turbolent Oct 17, 2025
08b1f04
fix test
turbolent Oct 17, 2025
299ba4e
when calling a higher-order function on a reference to an array, pass…
turbolent Oct 20, 2025
3ae330e
implement new array reference higher-order function semantics for int…
turbolent Oct 20, 2025
2231843
add test for compilation of invocation of method on reference
turbolent Oct 21, 2025
e371944
assert constants and globals
turbolent Oct 21, 2025
ce337b0
handle higher-order methods on array references special case in compi…
turbolent Oct 21, 2025
135cc88
don't dereference receiver for array map and filter in VM
turbolent Oct 21, 2025
4162a54
Delegate member lookup for references to the context
SupunS Oct 22, 2025
969614a
Fix getting attachment reciever and base
SupunS Oct 22, 2025
1969eed
Panic is storage reference is nil
SupunS Oct 22, 2025
59635c7
Fix reference creation for array map/filter functions
SupunS Oct 22, 2025
9171e87
Explcitly strip-off entitlements when returning a reference to a member
SupunS Oct 27, 2025
487b822
Add tests
SupunS Feb 27, 2026
ebb0a8a
Merge branch 'v1.9.11-rc' of https://github.com/onflow/cadence-intern…
SupunS Mar 5, 2026
7abef69
Erase entitlements of ephemeral refs when assigned to AnyStruct
SupunS Mar 6, 2026
cf58f98
Merge branch 'supun/optimize-static-type' of https://github.com/dappe…
SupunS Mar 6, 2026
aa41c31
Improve entitlement erasure
SupunS Mar 9, 2026
104e675
Merge branch 'v1.9.11-rc' of https://github.com/onflow/cadence-intern…
SupunS Mar 10, 2026
c29d0a2
Update tests
SupunS Mar 10, 2026
3de2768
Merge branch 'v1.9.11-rc' of https://github.com/dapperlabs/cadence-in…
SupunS Mar 16, 2026
4f2ea54
Fix test assertions
SupunS Mar 16, 2026
3940120
Simplify array and dictionary creation
SupunS Mar 16, 2026
fb509b8
Simplify array and dictionary creation
SupunS Mar 16, 2026
9a18d66
Merge branch 'supun/reference-type-erase' of https://github.com/onflo…
SupunS Mar 16, 2026
525708a
Skip unnecessary conversions
SupunS Mar 16, 2026
24d2714
Test optionals
SupunS Mar 16, 2026
c7ff212
Handle storage references
SupunS Mar 17, 2026
9b73a1c
Optimize: skip redundant conversions
SupunS Mar 17, 2026
51e7984
Refactor code
SupunS Mar 17, 2026
7dfe06c
Remove redundant 'convertStaticType' function. Replace usages with 'a…
SupunS Mar 18, 2026
6b3eb41
Move 'applyTargetTypeAuthorization' function to interperter.go
SupunS Mar 18, 2026
eda785f
intersect authorizations in nested reference access
turbolent Mar 23, 2026
1bdbe80
Merge branch 'v1.10.1-rc' of https://github.com/dapperlabs/cadence-in…
SupunS Mar 23, 2026
1956958
adjust tests
turbolent Mar 23, 2026
85163d6
adjust test
turbolent Mar 23, 2026
57ebfd3
Merge branch 'v1.10.1-rc' of https://github.com/dapperlabs/cadence-in…
SupunS Mar 25, 2026
091ede8
Add test for deeply nested object entitlement stripping
SupunS Mar 25, 2026
6672c78
recursively intersect authorizations
turbolent Mar 26, 2026
a0997ba
Fix entitlement stripping when assigning to reference
SupunS Mar 26, 2026
260de9b
Merge branch 'v1.10.2-rc' into supun/reference-type-erase
turbolent Apr 3, 2026
d23ceae
Merge branch 'v1.10.2-rc' into bastian/nested-reference-access
turbolent Apr 3, 2026
fb9b1b9
Gracefully handle division by zero for fixedpoint values
SupunS Apr 3, 2026
db40bff
Generate version
SupunS Apr 3, 2026
a2d2739
Merge pull request #466 from onflow/supun/fixedpoint-devision-by-zero
SupunS Apr 3, 2026
f447a23
Strip entitlements from function return types
SupunS Apr 7, 2026
b5d03f5
Add more tests
SupunS Apr 7, 2026
16c6e15
run conditions of inherited default function
turbolent Apr 8, 2026
b3f138c
Strip entitlements from function return type when assigned to AnyStruct
SupunS Apr 8, 2026
cf2ca2a
Check storable size before storing it in StorableSlab
fxamacker Apr 8, 2026
d622110
Use updated atree.NewStorableSlab()
fxamacker Apr 8, 2026
7113614
Update to atree latest commit
fxamacker Apr 9, 2026
8f34747
Merge branch 'master' into bastian/v1.10.2-rc-sync-public-master
turbolent Apr 9, 2026
b9eebf3
Merge branch 'master' into bastian/v1.10.2-rc-sync-public-master
turbolent Apr 10, 2026
f901032
Merge branch 'bastian/v1.10.2-rc-sync-public-master' into fxamacker/l…
turbolent Apr 10, 2026
e2af4c4
Merge pull request #473 from onflow/bastian/v1.10.2-rc-sync-public-ma…
turbolent Apr 10, 2026
9159829
Merge pull request #472 from onflow/fxamacker/limit-storable-size-for…
turbolent Apr 10, 2026
2c5b009
Merge pull request #439 from onflow/supun/reference-type-erase
turbolent Apr 13, 2026
ecbaac3
Merge branch 'v1.10.2-rc' into bastian/nested-reference-access
turbolent Apr 13, 2026
3fdd0e6
Merge branch 'v1.10.2-rc' into bastian/use-default-function-conditions
turbolent Apr 13, 2026
79da37a
Remove unused receiver
SupunS Apr 13, 2026
dba0d6f
Merge branch 'v1.10.2-rc' of https://github.com/dapperlabs/cadence-in…
SupunS Apr 13, 2026
0af9a49
Merge pull request #471 from onflow/supun/entitlements-in-anystruct-f…
turbolent Apr 13, 2026
d41d764
Merge branch 'v1.10.2-rc' into bastian/nested-reference-access
turbolent Apr 13, 2026
6d4626b
Merge branch 'v1.10.2-rc' into bastian/use-default-function-conditions
turbolent Apr 13, 2026
0ca3e60
Merge pull request #457 from onflow/bastian/nested-reference-access
turbolent Apr 13, 2026
a3b0c11
Merge pull request #470 from onflow/bastian/use-default-function-cond…
turbolent Apr 13, 2026
77c0ee0
Strip entitlements from function inside containers
SupunS Apr 14, 2026
e040a56
Merge branch 'v1.10.2-rc' of https://github.com/dapperlabs/cadence-in…
SupunS Apr 14, 2026
5252c53
Update version
SupunS Apr 14, 2026
b6f45dc
Merge pull request #475 from onflow/supun/entitlements-in-anystruct-f…
turbolent Apr 14, 2026
0a5591d
Merge branch 'v1.10.2-rc' of https://github.com/dapperlabs/cadence-in…
SupunS Apr 15, 2026
c2e6482
Update to match the latest changes of v1.10.2
SupunS Apr 15, 2026
ff84b2b
Merge branch 'bastian/fix-array-reference-higher-order-functions' of …
SupunS Apr 15, 2026
a35d0ab
Update to match latest changes
SupunS Apr 15, 2026
4522444
Merge branch 'supun/fix-array-reference-higher-order-functions-3' of …
SupunS Apr 15, 2026
8fba67b
Merge tag 'v1.10.2' into bastian/v1.10.3-rc-merge-v1.10.2
turbolent Apr 15, 2026
b54bcb4
Fix bound function receiver and base
SupunS Apr 16, 2026
f172893
Improve tests
SupunS Apr 16, 2026
cb2b823
Fix compiler tests
SupunS Apr 16, 2026
f678fce
Fix tests
SupunS Apr 16, 2026
89fc439
Refactor code and add comments
SupunS Apr 16, 2026
02094d4
Add more tests
SupunS Apr 16, 2026
d77e55b
Remove unused error
SupunS Apr 16, 2026
8510ce9
Merge pull request #476 from onflow/bastian/v1.10.3-rc-merge-v1.10.2
turbolent Apr 17, 2026
7a5cf6e
Add tests for entitlement stripping in capabilities
SupunS Apr 20, 2026
3112f70
Fix getting members via a reference in VM
SupunS Apr 21, 2026
7a9882e
Refactor code
SupunS Apr 21, 2026
ed768a2
Add more tests for reference looping
SupunS Apr 21, 2026
486abdf
Add tests for nested capabilities
SupunS Apr 24, 2026
618e1ec
Add comment
SupunS Apr 27, 2026
834ddf7
Add reproducer
SupunS Apr 27, 2026
35c046c
Add more tests
SupunS Apr 27, 2026
33a1fc4
Merge pull request #477 from onflow/supun/test-capability-entitlement…
SupunS Apr 27, 2026
ddd9d06
Pass the accessed-reference for GetMember/GetMethod methods
SupunS Apr 28, 2026
1c45c12
Fix tests for interpreter
SupunS Apr 28, 2026
f32b08a
Fix inclusive range functions
SupunS Apr 28, 2026
09e87c1
Fix VM receiver passing
SupunS Apr 29, 2026
ba3d015
refactor code and improve comments
SupunS Apr 29, 2026
695dc77
Delay public key bound function creation
SupunS Apr 30, 2026
4fbfc9c
Use runtime static type for value conversions
SupunS May 1, 2026
7673d45
Add tests for storage functions return value conversion
SupunS May 1, 2026
290c6d1
Update test asserts
SupunS May 1, 2026
e2ea0d6
Refactor code and improve comments
SupunS May 4, 2026
2d1c7eb
Sanity check 'accessedReference' for reference-typed values
SupunS May 4, 2026
49f83a0
Sanity check on attachment method receiver authorization
SupunS May 4, 2026
11eafe9
Pass the precise entitlements for the transaction in test
SupunS May 4, 2026
35cc094
Merge pull request #482 from onflow/supun/covert-using-runtime-type
SupunS May 4, 2026
ac2cc5c
Merge branch 'v1.10.3-rc' of https://github.com/dapperlabs/cadence-in…
SupunS May 4, 2026
28f2ddf
Merge pull request #481 from onflow/supun/fix-bound-function-receiver
SupunS May 4, 2026
675710a
Merge branch 'v1.10.3-rc' of https://github.com/dapperlabs/cadence-in…
SupunS May 4, 2026
1cb8421
Fix bound function receiver for interpreter
SupunS May 5, 2026
223e87a
Reuse same filter/map functions for array references
SupunS May 5, 2026
f613fbe
Simplify get member on reference
SupunS May 5, 2026
879dc3c
Add reproducer
SupunS May 8, 2026
9ce1fdc
Remove unnecessary wraping by bound functions
SupunS May 8, 2026
5bf3c31
Update version
SupunS May 8, 2026
a7b9fd8
Merge pull request #483 from onflow/supun/fix-bound-function-receiver
SupunS May 8, 2026
ffcfafb
add missing implicit boxing when iterating in for-loop
turbolent May 11, 2026
95796db
improve and add tests for implicit boxing
turbolent May 12, 2026
36cdb4d
Merge pull request #484 from onflow/bastian/fix-optional-iteration
turbolent May 12, 2026
0742e04
Merge branch 'v1.10.3-rc' into bastian/fix-array-reference-higher-ord…
turbolent May 12, 2026
c2bafcf
Merge pull request #350 from onflow/bastian/fix-array-reference-highe…
turbolent May 12, 2026
994fbd7
Defensively wrap methods of simple composite values
SupunS May 12, 2026
d10f68a
Update tests
SupunS May 13, 2026
e00e302
Add comments
SupunS May 13, 2026
b0a638a
Merge pull request #485 from onflow/supun/fix-bound-function-receiver
SupunS May 13, 2026
8b3f48f
fix break in switch
turbolent May 13, 2026
9413190
defensively panic when the end of a guard else branch is reached by t…
turbolent May 13, 2026
f42282a
update version
turbolent May 13, 2026
1857ad8
update version
turbolent May 13, 2026
5c763b3
Merge pull request #487 from onflow/bastian/fix-switch-break
turbolent May 13, 2026
c1e8254
Merge pull request #488 from onflow/bastian/unreachable-guard-else-end
turbolent May 13, 2026
862adce
update version
turbolent May 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Panic is storage reference is nil
  • Loading branch information
SupunS committed Oct 22, 2025
commit 1969eed4fb4314b041cb78833fcca4119fb0bcdb
7 changes: 7 additions & 0 deletions bbq/vm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,13 @@ func maybeDereferenceReceiver(context interpreter.ValueStaticTypeContext, value
return typedValue.Value
case *interpreter.StorageReferenceValue:
referencedValue := typedValue.ReferencedValue(context, true)

// `storageRef.ReferencedValue` above already checks for the type validity, if it's not nil.
// If nil, that means the value has been moved out of storage.
if referencedValue == nil {
panic(&interpreter.ReferencedValueChangedError{})
}

return *referencedValue
default:
return value
Expand Down
⌂ 换网址