fix: transfer invaild txid
This commit is contained in:
@@ -30,4 +30,15 @@ class TronDriverTest extends TestCase
|
||||
$this->assertFalse($driver->isValidAddress('0xab5c66752a9e8167967685f1450532fb96d5d24f'));
|
||||
$this->assertFalse($driver->isValidAddress('Tinvalid'));
|
||||
}
|
||||
|
||||
#[Test]
|
||||
public function empty_getaccount_payload_is_not_activated(): void
|
||||
{
|
||||
$this->assertFalse(TronDriver::accountIsActivated([]));
|
||||
$this->assertTrue(TronDriver::accountIsActivated([
|
||||
'address' => 'TUEZSdKsoDHQMeZwihtdoBiN46zxhGWYdH',
|
||||
'create_time' => 1,
|
||||
'balance' => 0,
|
||||
]));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user