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

Method GetNeoCode

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

Source from the content-addressed store, hash-verified

96}
97
98func (dc *DeployCode) GetNeoCode() ([]byte, error) {
99 if dc.VmType() == NEOVM_TYPE {
100 return dc.code, nil
101 } else {
102 return nil, errors.NewErr("not neo contract")
103 }
104}
105
106func checkVmFlags(vmFlags byte) error {
107 switch vmFlags {

Callers 1

GetNeoContractMethod · 0.80

Calls 2

VmTypeMethod · 0.95
NewErrFunction · 0.92

Tested by

no test coverage detected