Commit af0e35c9 authored by 张振华's avatar 张振华

Merge branch 'guess' of https://github.com/zzh33cn/plugin into guess

parents 0c4557b7 d853474d
...@@ -77,7 +77,7 @@ func TestJRPCChannel(t *testing.T) { ...@@ -77,7 +77,7 @@ func TestJRPCChannel(t *testing.T) {
} }
func testStartRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error { func testStartRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error {
payload := &pty.GuessGameStart{Topic: "WorldCup Final", Options: "A:France;B:Claodia", Category: "football", MaxBetsOneTime: 100e8, MaxBetsNumber:1000e8, DevFeeFactor: 5, DevFeeAddr: "1D6RFZNp2rh6QdbcZ1d7RWuBUz61We6SD7", PlatFeeFactor: 5, PlatFeeAddr: "1PHtChNt3UcfssR7v7trKSk3WJtAWjKjjX"} payload := &pty.GuessGameStart{Topic: "WorldCup Final", Options: "A:France;B:Claodia", Category: "football", MaxBetsOneTime: 100e8, MaxBetsNumber: 1000e8, DevFeeFactor: 5, DevFeeAddr: "1D6RFZNp2rh6QdbcZ1d7RWuBUz61We6SD7", PlatFeeFactor: 5, PlatFeeAddr: "1PHtChNt3UcfssR7v7trKSk3WJtAWjKjjX"}
params := &rpctypes.CreateTxIn{ params := &rpctypes.CreateTxIn{
Execer: types.ExecName(pty.GuessX), Execer: types.ExecName(pty.GuessX),
ActionName: pty.CreateStartTx, ActionName: pty.CreateStartTx,
...@@ -131,7 +131,6 @@ func testAbortRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error { ...@@ -131,7 +131,6 @@ func testAbortRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error {
return jrpc.Call("Chain33.CreateTransaction", params, &res) return jrpc.Call("Chain33.CreateTransaction", params, &res)
} }
func testQueryGameByID(t *testing.T, jrpc *jsonclient.JSONClient) error { func testQueryGameByID(t *testing.T, jrpc *jsonclient.JSONClient) error {
var rep interface{} var rep interface{}
var params rpctypes.Query4Jrpc var params rpctypes.Query4Jrpc
...@@ -187,7 +186,6 @@ func testQueryGamesByAdminAddr(t *testing.T, jrpc *jsonclient.JSONClient) error ...@@ -187,7 +186,6 @@ func testQueryGamesByAdminAddr(t *testing.T, jrpc *jsonclient.JSONClient) error
return jrpc.Call("Chain33.Query", params, rep) return jrpc.Call("Chain33.Query", params, rep)
} }
func testQueryGamesByAddrStatus(t *testing.T, jrpc *jsonclient.JSONClient) error { func testQueryGamesByAddrStatus(t *testing.T, jrpc *jsonclient.JSONClient) error {
var rep interface{} var rep interface{}
var params rpctypes.Query4Jrpc var params rpctypes.Query4Jrpc
...@@ -199,7 +197,6 @@ func testQueryGamesByAddrStatus(t *testing.T, jrpc *jsonclient.JSONClient) error ...@@ -199,7 +197,6 @@ func testQueryGamesByAddrStatus(t *testing.T, jrpc *jsonclient.JSONClient) error
return jrpc.Call("Chain33.Query", params, rep) return jrpc.Call("Chain33.Query", params, rep)
} }
func testQueryGamesByAdminStatus(t *testing.T, jrpc *jsonclient.JSONClient) error { func testQueryGamesByAdminStatus(t *testing.T, jrpc *jsonclient.JSONClient) error {
var rep interface{} var rep interface{}
var params rpctypes.Query4Jrpc var params rpctypes.Query4Jrpc
......
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