eth_compileLLL
This commit is contained in:
parent
60e52909ff
commit
6095c92900
@ -245,6 +245,13 @@ class Eth
|
||||
'validators' => StringValidator::class
|
||||
]
|
||||
]
|
||||
],
|
||||
'eth_compileLLL' => [
|
||||
'params' => [
|
||||
[
|
||||
'validators' => StringValidator::class
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
|
@ -784,6 +784,31 @@ class EthTest extends TestCase
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* testCompileLLL
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testCompileLLL()
|
||||
{
|
||||
$eth = $this->eth;
|
||||
|
||||
$eth->compileLLL('(returnlll (suicide (caller)))', function ($err, $compiled) {
|
||||
if ($err !== null) {
|
||||
return $this->fail($err->getMessage());
|
||||
}
|
||||
if (isset($compiled->result)) {
|
||||
$this->assertTrue(is_string($compiled->result));
|
||||
} else {
|
||||
// if (isset($compilers->error)) {
|
||||
$this->assertTrue(true);
|
||||
// } else {
|
||||
// $this->assertTrue(true);
|
||||
// }
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* testUnallowedMethod
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user