Skip to content

Commit

Permalink
Cleaning up unnecessary loggings
Browse files Browse the repository at this point in the history
  • Loading branch information
mojtaba-eshghie committed Jun 24, 2024
1 parent 68fdd39 commit 019b3b8
Show file tree
Hide file tree
Showing 62 changed files with 126 additions and 168 deletions.
4 changes: 2 additions & 2 deletions CI/exploits/regular/GovernanceExploit.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -104,7 +104,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -97,7 +97,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function exploit(web3, envInfo, contractAddress) {
from: envInfo.accounts[0],
gas: 3000000
});
governanceExploitLogger.info(`I am successful!`)

return true;
} catch (error) {
console.error("Error in governance actions:", error);
Expand All @@ -101,7 +101,7 @@ async function exploit(web3, envInfo, contractAddress) {
*/
module.exports = async function runTests(web3, envInfo, contractAddress) {
// envInfo.accounts, envInfo.privateKeys, and envInfo.rpcAddress should be available from Anvil
console.log(`contractAddress: ${contractAddress}`)

// Execute the exploit
let result = await exploit(web3, envInfo, contractAddress);
// See if exploit has yielded the predicted result (a very manual oracle!)
Expand Down
Loading

0 comments on commit 019b3b8

Please sign in to comment.