From 8e0cfbc1a1f44bdda70a6c46e828068d8539206b Mon Sep 17 00:00:00 2001 From: Tim Williams Date: Sun, 15 Jul 2018 09:32:22 -0400 Subject: [PATCH] add intArrToByteArr function for testing --- shyftRingWalletConn/app.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/shyftRingWalletConn/app.go b/shyftRingWalletConn/app.go index 26f0cbee32..58e79622ad 100644 --- a/shyftRingWalletConn/app.go +++ b/shyftRingWalletConn/app.go @@ -148,4 +148,13 @@ func handleRequest(conn net.Conn) { // Close the connection when you're done with it. //conn.Close() -} \ No newline at end of file +} + +func intArrToByteArr(foo []int) []byte { + + ret := []byte{} + for _, value := range foo { + ret = append(ret, byte(value)) + } + return ret +}