Skip to content

Commit

Permalink
Merge pull request #2668 from onflow/supun/fix-memory-metering
Browse files Browse the repository at this point in the history
Fix entitlement memory metering
  • Loading branch information
SupunS authored Jul 20, 2023
2 parents 868fd26 + fc11fd8 commit c59c3be
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 164 deletions.
2 changes: 1 addition & 1 deletion runtime/ast/entitlement_declaration.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func NewEntitlementMappingDeclaration(
docString string,
declRange Range,
) *EntitlementMappingDeclaration {
common.UseMemory(gauge, common.EntitlementDeclarationMemoryUsage)
common.UseMemory(gauge, common.EntitlementMappingDeclarationMemoryUsage)

return &EntitlementMappingDeclaration{
Access: access,
Expand Down
1 change: 0 additions & 1 deletion runtime/common/memorykind.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ const (
MemoryKindDictionaryStaticType
MemoryKindOptionalStaticType
MemoryKindIntersectionStaticType
MemoryKindUnauthorizedStaticAccess
MemoryKindEntitlementSetStaticAccess
MemoryKindEntitlementMapStaticAccess
MemoryKindReferenceStaticType
Expand Down
Loading

0 comments on commit c59c3be

Please sign in to comment.