mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
find instead of find_firt_of
This commit is contained in:
parent
27b9518423
commit
e906bb906f
@ -479,7 +479,7 @@ bytes importCode(json_spirit::mObject& _o)
|
|||||||
{
|
{
|
||||||
bytes code;
|
bytes code;
|
||||||
if (_o["code"].type() == json_spirit::str_type)
|
if (_o["code"].type() == json_spirit::str_type)
|
||||||
if (_o["code"].get_str().find_first_of("0x") != 0)
|
if (_o["code"].get_str().find("0x") != 0)
|
||||||
code = compileLLL(_o["code"].get_str(), false);
|
code = compileLLL(_o["code"].get_str(), false);
|
||||||
else
|
else
|
||||||
code = fromHex(_o["code"].get_str().substr(2));
|
code = fromHex(_o["code"].get_str().substr(2));
|
||||||
|
Loading…
Reference in New Issue
Block a user