Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@embark/deployment): don't break when using abiDefinitions
In #1119 we've introduced a feature where users can provide an already compiled ABI for Smart Contracts so they can be used without the need to compiling them again. This also means that, internally, those Smart Contract object won't have any bytecode attached to it. Later on, in 387d33a, we've introduced a warning which is rendered when a Smart Contract's bytecode is too large. The check expects a Smart Contract object to have bytecode associated to it, which will break the code in cases where a Smart Contract has already an ABI and therefore didn't need compilation. This commit ensures we only check a Smart Contract's bytecode when bytecode exists for the Smart Contract in question.
- Loading branch information