ABI can be empty and auto-fill contract name #3511

This commit is contained in:
Nicolas Gotchac
2016-11-18 17:54:25 +01:00
parent 55a3da8f0a
commit 8fc1506c57
2 changed files with 6 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ export function validateAbi (abi, api) {
try {
abiParsed = JSON.parse(abi);
if (!api.util.isArray(abiParsed) || !abiParsed.length) {
if (!api.util.isArray(abiParsed)) {
abiError = ERRORS.invalidAbi;
return { abi, abiError, abiParsed };
}