fix: balance
This commit is contained in:
@@ -18,9 +18,14 @@ class WalletBalanceServiceTest extends TestCase
|
||||
public function refreshes_tron_trx_and_usdt_only(): void
|
||||
{
|
||||
Http::fake([
|
||||
'*/wallet/getaccount' => Http::response(['balance' => 1_000_000], 200),
|
||||
'*/wallet/triggerconstantcontract' => Http::response([
|
||||
'constant_result' => [str_pad(dechex(3_000_000), 64, '0', STR_PAD_LEFT)],
|
||||
'*/v1/accounts/*' => Http::response([
|
||||
'data' => [[
|
||||
'balance' => 1_000_000,
|
||||
'trc20' => [
|
||||
['TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t' => '3000000'],
|
||||
],
|
||||
]],
|
||||
'success' => true,
|
||||
], 200),
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user