File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public function all(array $query = []): ?array
29
29
*/
30
30
public function get (string $ txHash ): ?array
31
31
{
32
- $ result = $ this ->requestGet (' receipts ' , [ ' txHash ' => $ txHash] )['data ' ];
32
+ $ result = $ this ->requestGet (" receipts/ { $ txHash}" )['data ' ];
33
33
34
34
if (empty ($ result )) {
35
35
throw new Exception (sprintf ('No receipt found for transaction %s ' , $ txHash ));
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public function get_calls_correct_url()
26
26
{
27
27
$ this ->assertResponse (
28
28
method: 'GET ' ,
29
- path: 'receipts?txHash= dummyTxHash ' ,
29
+ path: 'receipts/ dummyTxHash ' ,
30
30
callback: function (ArkClient $ client ) {
31
31
return $ client ->receipts ()->get ('dummyTxHash ' );
32
32
},
@@ -42,7 +42,7 @@ public function validates_the_response()
42
42
43
43
$ this ->assertResponse (
44
44
method: 'GET ' ,
45
- path: 'receipts?txHash= dummyTxHash ' ,
45
+ path: 'receipts/ dummyTxHash ' ,
46
46
callback: function (ArkClient $ client ) {
47
47
return $ client ->receipts ()->get ('dummyTxHash ' );
48
48
},
You can’t perform that action at this time.
0 commit comments