[aergo.name] The state check of "aergo.name" is corrected
@@ -93,7 +93,9 @@ func openContract(bs *state.BlockState) (*state.ContractState, error) {
//GetAddress is resolve name for mempool
func GetAddress(scs *state.ContractState, name []byte) []byte {
- if len(name) == types.AddressLength || bytes.Equal(name, []byte(types.AergoSystem)) {
+ if len(name) == types.AddressLength ||
+ bytes.Equal(name, []byte(types.AergoSystem)) ||
+ bytes.Equal(name, []byte(types.AergoName)) {
return name
}
return getAddress(scs, name)
