MCPcopy Create free account
hub / github.com/DNAProject/DNA / GetWasmCode

Method GetWasmCode

core/payload/deploy_code.go:90–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88}
89
90func (dc *DeployCode) GetWasmCode() ([]byte, error) {
91 if dc.VmType() == WASMVM_TYPE {
92 return dc.code, nil
93 } else {
94 return nil, errors.NewErr("not wasm contract")
95 }
96}
97
98func (dc *DeployCode) GetNeoCode() ([]byte, error) {
99 if dc.VmType() == NEOVM_TYPE {

Callers 3

ContractCreateFunction · 0.80
ContractMigrateFunction · 0.80
InvokeMethod · 0.80

Calls 2

VmTypeMethod · 0.95
NewErrFunction · 0.92

Tested by

no test coverage detected