Updated guzzle version in composer + miner update in tests

This commit is contained in:
janruls1 2020-10-09 16:55:10 +05:30
parent d69ce96a64
commit 9c073e9d5b
2 changed files with 16 additions and 16 deletions

View File

@ -10,7 +10,7 @@
} }
], ],
"require": { "require": {
"guzzlehttp/guzzle": "~6.0", "guzzlehttp/guzzle": "~7.0",
"PHP": "^7.1", "PHP": "^7.1",
"kornrunner/keccak": "~1.0", "kornrunner/keccak": "~1.0",
"phpseclib/phpseclib": "~2.0.11", "phpseclib/phpseclib": "~2.0.11",

View File

@ -10,21 +10,21 @@ class PersonalApiTest extends TestCase
{ {
/** /**
* personal * personal
* *
* @var Web3\Personal * @var Web3\Personal
*/ */
protected $personal; protected $personal;
/** /**
* newAccount * newAccount
* *
* @var string * @var string
*/ */
protected $newAccount; protected $newAccount;
/** /**
* setUp * setUp
* *
* @return void * @return void
*/ */
public function setUp() public function setUp()
@ -36,7 +36,7 @@ class PersonalApiTest extends TestCase
/** /**
* testListAccounts * testListAccounts
* *
* @return void * @return void
*/ */
public function testListAccounts() public function testListAccounts()
@ -54,7 +54,7 @@ class PersonalApiTest extends TestCase
/** /**
* testNewAccount * testNewAccount
* *
* @return void * @return void
*/ */
public function testNewAccount() public function testNewAccount()
@ -71,7 +71,7 @@ class PersonalApiTest extends TestCase
/** /**
* testUnlockAccount * testUnlockAccount
* *
* @return void * @return void
*/ */
public function testUnlockAccount() public function testUnlockAccount()
@ -97,7 +97,7 @@ class PersonalApiTest extends TestCase
/** /**
* testUnlockAccountWithDuration * testUnlockAccountWithDuration
* *
* @return void * @return void
*/ */
public function testUnlockAccountWithDuration() public function testUnlockAccountWithDuration()
@ -123,7 +123,7 @@ class PersonalApiTest extends TestCase
/** /**
* testLockAccount * testLockAccount
* *
* @return void * @return void
*/ */
public function testLockAccount() public function testLockAccount()
@ -156,9 +156,9 @@ class PersonalApiTest extends TestCase
/** /**
* testSendTransaction * testSendTransaction
* *
* @return void * @return void
*/ */
public function testSendTransaction() public function testSendTransaction()
{ {
$personal = $this->personal; $personal = $this->personal;
@ -175,7 +175,7 @@ class PersonalApiTest extends TestCase
$this->web3->eth->sendTransaction([ $this->web3->eth->sendTransaction([
'from' => $this->coinbase, 'from' => $this->coinbase,
'to' => $this->newAccount, 'to' => $this->newAccount,
'value' => '0xfffffffff', 'value' => '0xfffffffffffff',
], function ($err, $transaction) { ], function ($err, $transaction) {
if ($err !== null) { if ($err !== null) {
return $this->fail($err->getMessage()); return $this->fail($err->getMessage());
@ -199,7 +199,7 @@ class PersonalApiTest extends TestCase
/** /**
* testUnallowedMethod * testUnallowedMethod
* *
* @return void * @return void
*/ */
public function testUnallowedMethod() public function testUnallowedMethod()
@ -218,7 +218,7 @@ class PersonalApiTest extends TestCase
/** /**
* testWrongParam * testWrongParam
* *
* @return void * @return void
*/ */
public function testWrongParam() public function testWrongParam()
@ -237,7 +237,7 @@ class PersonalApiTest extends TestCase
/** /**
* testWrongCallback * testWrongCallback
* *
* @return void * @return void
*/ */
public function testWrongCallback() public function testWrongCallback()
@ -248,4 +248,4 @@ class PersonalApiTest extends TestCase
$personal->newAccount('123456'); $personal->newAccount('123456');
} }
} }