smartcontract: add checks for parameter names
It can be annoying to use parameter names as specified by standard, so a separate `CheckABI` is supported.
This commit is contained in:
parent
9d4ccf0fcc
commit
d89f055697
5 changed files with 79 additions and 31 deletions
|
@ -227,7 +227,7 @@ func CompileAndSave(src string, o *Options) ([]byte, error) {
|
|||
return b, fmt.Errorf("failed to convert debug info to manifest: %w", err)
|
||||
}
|
||||
if !o.NoStandardCheck {
|
||||
if err := standard.Check(m, o.ContractSupportedStandards...); err != nil {
|
||||
if err := standard.CheckABI(m, o.ContractSupportedStandards...); err != nil {
|
||||
return b, err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue