Skip to content

Commit

Permalink
fix: change base loop
Browse files Browse the repository at this point in the history
  • Loading branch information
agusduha committed Apr 8, 2024
1 parent 8522001 commit f6fb037
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ export async function renderAbstractUnimplementedFunctions(contract: ContractDef
if (contract.vLinearizedBaseContracts.length > 1) {
const functions = contract.vFunctions;

// Skip the first contract, which is the current contract
for (let i = 1; i < contract.vLinearizedBaseContracts.length; i++) {
const base = contract.vLinearizedBaseContracts[i];
for (const base of contract.vLinearizedBaseContracts) {
// Skip the first contract, which is the current contract
if (base.id === contract.id) continue;

for (const baseFunction of base.vFunctions) {
// If the function is not implemented in the current contract, render it
Expand Down

0 comments on commit f6fb037

Please sign in to comment.