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

Function updateNativeSCAddr

http/base/actor/utils.go:30–43  ·  view source on GitHub ↗
(hash common.Address)

Source from the content-addressed store, hash-verified

28)
29
30func updateNativeSCAddr(hash common.Address) common.Address {
31 if hash == utils.GasContractAddress {
32 hash = common.AddressFromVmCode(utils.GasContractAddress[:])
33 } else if hash == utils.DIDContractAddress {
34 hash = common.AddressFromVmCode(utils.DIDContractAddress[:])
35 } else if hash == utils.ParamContractAddress {
36 hash = common.AddressFromVmCode(utils.ParamContractAddress[:])
37 } else if hash == utils.AuthContractAddress {
38 hash = common.AddressFromVmCode(utils.AuthContractAddress[:])
39 } else if hash == utils.GovernanceContractAddress {
40 hash = common.AddressFromVmCode(utils.GovernanceContractAddress[:])
41 }
42 return hash
43}

Callers 1

Calls 1

AddressFromVmCodeFunction · 0.92

Tested by

no test coverage detected