mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-04 10:25:04 +00:00
Length check
This commit is contained in:
parent
d5bcc01eae
commit
23b5b5fa36
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ func Compile(script string) (ret []byte, err error) {
|
|||
if len(script) > 2 {
|
||||
line := strings.Split(script, "\n")[0]
|
||||
|
||||
if line[0:2] == "#!" {
|
||||
if len(line) > 1 && line[0:2] == "#!" {
|
||||
switch line {
|
||||
case "#!serpent":
|
||||
byteCode, err := serpent.Compile(script)
|
||||
|
|
|
|||
Loading…
Reference in a new issue