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

Function checkVmFlags

core/payload/deploy_code.go:106–113  ·  view source on GitHub ↗
(vmFlags byte)

Source from the content-addressed store, hash-verified

104}
105
106func checkVmFlags(vmFlags byte) error {
107 switch vmFlags {
108 case 0, 1, 3:
109 return nil
110 default:
111 return fmt.Errorf("invalid vm flags: %d", vmFlags)
112 }
113}
114
115func (dc *DeployCode) VmType() VmType {
116 switch dc.vmFlags {

Callers 1

validateDeployCodeFunction · 0.85

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected