Skip to content

Commit f56282e

Browse files
committed
Add note about StoreCodeUnchecked gas
1 parent cb187b9 commit f56282e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib_libwasmvm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func (vm *VM) SimulateStoreCode(code WasmCode, gasLimit uint64) (Checksum, uint6
9090
return checksum, gasCost, err
9191
}
9292

93-
// StoreCodeUnchecked is the same as StoreCode but skips static validation checks.
93+
// StoreCodeUnchecked is the same as StoreCode but skips static validation checks and charges no gas.
9494
// Use this for adding code that was checked before, particularly in the case of state sync.
9595
func (vm *VM) StoreCodeUnchecked(code WasmCode) (Checksum, error) {
9696
return api.StoreCodeUnchecked(vm.cache, code)

0 commit comments

Comments
 (0)