Skip to content

Commit 8a9e3b7

Browse files
committed
update gas usage for hooks
1 parent f92b26c commit 8a9e3b7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

vmhost/contexts/managedType.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -786,13 +786,8 @@ func (context *managedTypesContext) ManagedMapGet(mMapHandle int32, keyHandle in
786786
return err
787787
}
788788

789-
err = context.ConsumeGasForBytes(value)
790-
if err != nil {
791-
return err
792-
}
793-
794789
context.SetBytes(outValueHandle, value)
795-
return nil
790+
return context.ConsumeGasForBytes(value)
796791
}
797792

798793
// ManagedMapRemove removes the bytes stored as the key handle and returns it in an output value handle

0 commit comments

Comments
 (0)