We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b851cb7 commit cbf40f3Copy full SHA for cbf40f3
src/handler.js
@@ -397,6 +397,10 @@ class Blockchain {
397
async deploy(contracts, callback) {
398
//sort deploy other contracts first
399
Object.entries(contracts).sort((a, b) => a[1].main ? 10 : -1).forEach(([templateContractName, o]) => {
400
+ if(o.evm.bytecode.object.length === 0){
401
+ return; //no bytecode, probably an interface
402
+ }
403
+
404
let thisContract = {
405
bytecode: o.evm.bytecode.object,
406
abi: o.abi,
@@ -405,6 +409,7 @@ class Blockchain {
409
main: o.main,
410
accounts: undefined
407
411
}
412
408
413
this.deployed[templateContractName] = thisContract;
414
this.getAccounts()
415
.then(accounts => {
0 commit comments