avoid populating abi field with invalid data if it's not required
This commit is contained in:
parent
78682a90af
commit
d488436054
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue