Skip to content

Commit

Permalink
fixed log parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Divide-By-0 committed May 22, 2024
1 parent f053391 commit e7a702a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/safe_tracker/safe_tracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ const main = async () => {
const subscriptionSafeSetup = alchemy.ws.on([safeSetupEvent], async (log: LogType, event: { event: string }) => {
console.log("Safe setup detected!");
const abiCoder = new ethers.AbiCoder();
const decodedData = abiCoder.decode(["address", "address[]", "uint256", "address", "address"], log.data);
const owners = decodedData[1];
const decodedData = abiCoder.decode(["address[]", "uint256", "address", "address"], log.data);
const owners = decodedData[0];
console.log(`Owners: ${owners}`);
const eventSenderAddress = log.address;
console.log(`Event Sender Address: ${eventSenderAddress}`);
Expand Down

0 comments on commit e7a702a

Please sign in to comment.