Skip to content

Commit

Permalink
more backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
sasurobert committed Sep 23, 2021
1 parent b000b84 commit 38d75d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vm/systemSmartContracts/esdt.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ func (e *esdt) checkBasicCreateArguments(args *vmcommon.ContractCallInput) vmcom
e.eei.AddReturnMessage(err.Error())
return vmcommon.UserError
}
if len(args.Arguments) < 2 {
e.eei.AddReturnMessage("not enough arguments")
return vmcommon.UserError
}
if len(args.Arguments[0]) < minLengthForTokenName ||
len(args.Arguments[0]) > int(esdtConfig.MaxTokenNameLength) {
e.eei.AddReturnMessage("token name length not in parameters")
Expand Down

0 comments on commit 38d75d6

Please sign in to comment.