(hash common.Address)
| 28 | ) |
| 29 | |
| 30 | func 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 | } |
no test coverage detected