Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmgdr committed Mar 21, 2024
1 parent 1e6996d commit 78d33a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/governance/propose.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ testWithGanache('governance:propose cmd', (web3: Web3) => {
)
})

test.only('succeeds when proposal contains transactions for contracts verified on celoScan', async () => {
test('succeeds when proposal contains transactions for contracts verified on celoScan', async () => {
const transactionsToBeSaved = JSON.stringify(transactionsForContractsVerifiedOnCeloScan)
fs.writeFileSync('transactions2.json', transactionsToBeSaved, { flag: 'w' })
await testLocally(Propose, [
Expand Down
2 changes: 0 additions & 2 deletions packages/sdk/governance/src/proposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,13 +443,11 @@ export class ProposalBuilder {
console.log(tx.address + ' is a proxy, repointing to ' + tx.args[0])
this.externalCallProxyRepoint.set(tx.address || tx.contract, tx.args[0] as string)
}
console.error('Building transaction for', tx)
const strategies = [this.buildCallToCoreContract, this.buildCallToExternalContract]
for (const strategy of strategies) {
try {
return await strategy(tx)
} catch (e) {
console.error('HELP', e)
debug("Couldn't build transaction with strategy %s: %O", strategy.name, e)
}
}
Expand Down

0 comments on commit 78d33a2

Please sign in to comment.