Skip to content

Commit

Permalink
Merge pull request #491 from CosmWasm/remove-VM.Create
Browse files Browse the repository at this point in the history
Remove VM.Create
  • Loading branch information
webmaster128 authored Jan 10, 2024
2 parents e9d831b + a4e53ce commit 0ea825c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions docs/MIGRATING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Migrating docs for callers of the wasmvm Go project

## 1.x -> 2.0

- `VM.Create` was removed. Use `VM.StoreCode` instead.
5 changes: 0 additions & 5 deletions lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ func (vm *VM) Cleanup() {
api.ReleaseCache(vm.cache)
}

// Deprecated: Renamed to StoreCode
func (vm *VM) Create(code WasmCode) (Checksum, error) {
return vm.StoreCode(code)
}

// StoreCode will compile the Wasm code, and store the resulting compiled module
// as well as the original code. Both can be referenced later via Checksum.
// This must be done one time for given code, after which it can be
Expand Down

0 comments on commit 0ea825c

Please sign in to comment.