Merge pull request #1356 from benthecarman/oops

This commit is contained in:
Ben Carman 2020-04-22 11:53:31 -05:00 committed by GitHub
commit 001124a045
2 changed files with 2 additions and 2 deletions

View File

@ -409,7 +409,7 @@ class RoutesSpec
Get() ~> route ~> check {
contentType shouldEqual `application/json`
responseAs[String] shouldEqual s"""{"result":"${tx.txIdBE}","error":null}"""
responseAs[String] shouldEqual s"""{"result":"${tx.txIdBE.hex}","error":null}"""
}
}

View File

@ -35,7 +35,7 @@ case class NodeRoutes(node: Node)(implicit system: ActorSystem)
case Success(SendRawTransaction(tx)) =>
complete {
node.broadcastTransaction(tx).map { _ =>
Server.httpSuccess(s"${tx.txIdBE}")
Server.httpSuccess(s"${tx.txIdBE.hex}")
}
}
}