Commit de416732 authored by vipwzw's avatar vipwzw

auto ci

parent c40dba14
...@@ -58,9 +58,9 @@ func pokerbullStart(cmd *cobra.Command, args []string) { ...@@ -58,9 +58,9 @@ func pokerbullStart(cmd *cobra.Command, args []string) {
playerCount, _ := cmd.Flags().GetUint32("playerCount") playerCount, _ := cmd.Flags().GetUint32("playerCount")
params := &rpctypes.CreateTxIn{ params := &rpctypes.CreateTxIn{
Execer: types.ExecName(pkt.PokerBullX), Execer: types.ExecName(pkt.PokerBullX),
ActionName: pkt.CreateStartTx, ActionName: pkt.CreateStartTx,
Payload: []byte(fmt.Sprintf("{\"value\":%d,\"playerNum\":%d}", int64(value) * types.Coin, int32(playerCount))), Payload: []byte(fmt.Sprintf("{\"value\":%d,\"playerNum\":%d}", int64(value)*types.Coin, int32(playerCount))),
} }
var res string var res string
...@@ -89,9 +89,9 @@ func pokerbullContinue(cmd *cobra.Command, args []string) { ...@@ -89,9 +89,9 @@ func pokerbullContinue(cmd *cobra.Command, args []string) {
gameID, _ := cmd.Flags().GetString("gameID") gameID, _ := cmd.Flags().GetString("gameID")
params := &rpctypes.CreateTxIn{ params := &rpctypes.CreateTxIn{
Execer: types.ExecName(pkt.PokerBullX), Execer: types.ExecName(pkt.PokerBullX),
ActionName: pkt.CreateContinueTx, ActionName: pkt.CreateContinueTx,
Payload: []byte(fmt.Sprintf("{\"gameId\":\"%s\"}", gameID)), Payload: []byte(fmt.Sprintf("{\"gameId\":\"%s\"}", gameID)),
} }
var res string var res string
...@@ -120,9 +120,9 @@ func pokerbullQuit(cmd *cobra.Command, args []string) { ...@@ -120,9 +120,9 @@ func pokerbullQuit(cmd *cobra.Command, args []string) {
gameID, _ := cmd.Flags().GetString("gameID") gameID, _ := cmd.Flags().GetString("gameID")
params := &rpctypes.CreateTxIn{ params := &rpctypes.CreateTxIn{
Execer: types.ExecName(pkt.PokerBullX), Execer: types.ExecName(pkt.PokerBullX),
ActionName: pkt.CreatequitTx, ActionName: pkt.CreatequitTx,
Payload: []byte(fmt.Sprintf("{\"gameId\":\"%s\"}", gameID)), Payload: []byte(fmt.Sprintf("{\"gameId\":\"%s\"}", gameID)),
} }
var res string var res string
......
...@@ -61,9 +61,9 @@ func TestJRPCChannel(t *testing.T) { ...@@ -61,9 +61,9 @@ func TestJRPCChannel(t *testing.T) {
func testStartRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error { func testStartRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error {
params := &rpctypes.CreateTxIn{ params := &rpctypes.CreateTxIn{
Execer: types.ExecName(pty.PokerBullX), Execer: types.ExecName(pty.PokerBullX),
ActionName: pty.CreateStartTx, ActionName: pty.CreateStartTx,
Payload: []byte(""), Payload: []byte(""),
} }
var res string var res string
return jrpc.Call("Chain33.CreateTransaction", params, &res) return jrpc.Call("Chain33.CreateTransaction", params, &res)
...@@ -71,9 +71,9 @@ func testStartRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error { ...@@ -71,9 +71,9 @@ func testStartRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error {
func testContinueRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error { func testContinueRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error {
params := &rpctypes.CreateTxIn{ params := &rpctypes.CreateTxIn{
Execer: types.ExecName(pty.PokerBullX), Execer: types.ExecName(pty.PokerBullX),
ActionName: pty.CreateContinueTx, ActionName: pty.CreateContinueTx,
Payload: []byte(""), Payload: []byte(""),
} }
var res string var res string
return jrpc.Call("Chain33.CreateTransaction", params, &res) return jrpc.Call("Chain33.CreateTransaction", params, &res)
...@@ -81,9 +81,9 @@ func testContinueRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error { ...@@ -81,9 +81,9 @@ func testContinueRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error {
func testQuitRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error { func testQuitRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error {
params := &rpctypes.CreateTxIn{ params := &rpctypes.CreateTxIn{
Execer: types.ExecName(pty.PokerBullX), Execer: types.ExecName(pty.PokerBullX),
ActionName: pty.CreatequitTx, ActionName: pty.CreatequitTx,
Payload: []byte(""), Payload: []byte(""),
} }
var res string var res string
...@@ -144,4 +144,3 @@ func testQueryGameByRound(t *testing.T, jrpc *jsonclient.JSONClient) error { ...@@ -144,4 +144,3 @@ func testQueryGameByRound(t *testing.T, jrpc *jsonclient.JSONClient) error {
rep = &pty.PBGameRecords{} rep = &pty.PBGameRecords{}
return jrpc.Call("Chain33.Query", params, rep) return jrpc.Call("Chain33.Query", params, rep)
} }
...@@ -5,8 +5,9 @@ package types ...@@ -5,8 +5,9 @@ package types
import ( import (
fmt "fmt" fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math" math "math"
proto "github.com/golang/protobuf/proto"
) )
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment