@@ -2743,9 +2743,9 @@ func TestMethod(t *testing.T) {
27432743 })
27442744
27452745 ////////////////////////////////////////////////////////////////////////
2746- // getMatchAdvanced
2746+ // getMatchAdvance
27472747 ////////////////////////////////////////////////////////////////////////
2748- t .Run ("cartesi_getMatchAdvanced " , func (t * testing.T ) {
2748+ t .Run ("cartesi_getMatchAdvance " , func (t * testing.T ) {
27492749 method := getName (t .Name ())
27502750
27512751 // failure: epoch_index not hex encoded -> invalid param
@@ -2758,7 +2758,7 @@ func TestMethod(t *testing.T) {
27582758
27592759 body := s .doRequest (t , 0 , fmt .Appendf ([]byte {}, `{
27602760 "jsonrpc": "2.0",
2761- "method": "cartesi_getMatchAdvanced ",
2761+ "method": "cartesi_getMatchAdvance ",
27622762 "params": {
27632763 "application": "%v",
27642764 "epoch_index": "%v"
@@ -2790,7 +2790,7 @@ func TestMethod(t *testing.T) {
27902790
27912791 body := s .doRequest (t , 0 , fmt .Appendf ([]byte {}, `{
27922792 "jsonrpc": "2.0",
2793- "method": "cartesi_getMatchAdvanced ",
2793+ "method": "cartesi_getMatchAdvance ",
27942794 "params": {
27952795 "application": "%v",
27962796 "epoch_index": "0x%020x",
@@ -2815,7 +2815,7 @@ func TestMethod(t *testing.T) {
28152815 nr := uint64 (0xdeadbeef )
28162816 body := s .doRequest (t , 0 , fmt .Appendf ([]byte {}, `{
28172817 "jsonrpc": "2.0",
2818- "method": "cartesi_getMatchAdvanced ",
2818+ "method": "cartesi_getMatchAdvance ",
28192819 "params": {
28202820 "application": "%v",
28212821 "epoch_index": "0x%020x",
@@ -2842,7 +2842,8 @@ func TestMethod(t *testing.T) {
28422842 nr := uint64 (2 )
28432843 address := common .HexToAddress ("0x03" )
28442844 idHash := common .HexToHash ("0x04" )
2845- parent := common .HexToHash ("0x05" )
2845+ parentHex := "0xAbCdEf0123456789aBcDeF0123456789AbCdEf0123456789aBcDeF0123456789"
2846+ parent := common .HexToHash (parentHex )
28462847
28472848 appID := s .newTestApplication (ctx , t , app )
28482849 s .createTestEpoch (ctx , t , numberToName (app ),
@@ -2888,16 +2889,16 @@ func TestMethod(t *testing.T) {
28882889
28892890 body := s .doRequest (t , 0 , fmt .Appendf ([]byte {}, `{
28902891 "jsonrpc": "2.0",
2891- "method": "cartesi_getMatchAdvanced ",
2892+ "method": "cartesi_getMatchAdvance ",
28922893 "params": {
28932894 "application": "%v",
28942895 "epoch_index": "0x%020x",
28952896 "tournament_address": "0x%020x",
28962897 "id_hash": "0x%064x",
2897- "parent": "0x%064x "
2898+ "parent": "%s "
28982899 },
28992900 "id": 0
2900- }` , numberToName (app ), nr , address , idHash , parent ))
2901+ }` , numberToName (app ), nr , address , idHash , parentHex ))
29012902
29022903 resp := testRPCResponse [getMatchAdvancedResult ]{}
29032904 assert .Nil (t , json .Unmarshal (body , & resp ))
0 commit comments