diff --git a/api/grpc/transaction.go b/api/grpc/transaction.go index df6cff7..7b0e7a8 100644 --- a/api/grpc/transaction.go +++ b/api/grpc/transaction.go @@ -52,7 +52,7 @@ func (cbs *ChainBrokerService) checkTransaction(tx *pb.Transaction) error { return fmt.Errorf("tx from address is nil") } if tx.To == nil { - tx.To = &types.Address{} + return fmt.Errorf("tx to address is nil") } emptyAddress := &types.Address{}