avoid populating abi field with invalid data if it's not required

This commit is contained in:
fernandomg 2020-06-03 16:30:51 -03:00
parent 78682a90af
commit d488436054
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ export const abiExtractor = createDecorator({
mustBeEthereumAddress(contractAddress) || mustBeEthereumAddress(contractAddress) ||
(await mustBeEthereumContractAddress(contractAddress)) (await mustBeEthereumContractAddress(contractAddress))
) { ) {
return NO_CONTRACT return
} }
const network = getNetwork() const network = getNetwork()
const source = getConfiguredSource() const source = getConfiguredSource()