Skip to content

Commit

Permalink
allowing contracts built by factories to be seen
Browse files Browse the repository at this point in the history
  • Loading branch information
Viterbo committed Nov 20, 2024
1 parent 820eb1a commit a51752a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/contract/ContractManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,11 @@ export default class ContractManager {
return;
}
let contract = this.factory.buildContract(contractData);

if(
!this.getNetworkContract(index) && contract?.name
|| contract.abi?.length > 0 && !this.getNetworkContract(index)?.abi
|| contract.abi?.length > 0 && contract.abi.length > (this.getNetworkContract(index)?.abi?.length || 0)
|| !!contract.creationInfo?.creator
){
this.setNetworkContract(index, contract);
}
Expand Down

0 comments on commit a51752a

Please sign in to comment.