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:
Evgeniy Stratonikov 2021-02-19 13:13:36 +03:00
parent 9d4ccf0fcc
commit d89f055697
5 changed files with 79 additions and 31 deletions

View file

@ -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
}
}