Skip to content

Commit dda1f3d

Browse files
committed
refactor(EventAction): simplify input name assignment logic
1 parent 7f4402f commit dda1f3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/sdk/src/Actions/EventAction.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2198,8 +2198,9 @@ export function decodeAndReorderLogArgs(event: AbiEvent, log: Log) {
21982198
}
21992199

22002200
const namedEvent = structuredClone(event);
2201+
22012202
namedEvent.inputs.forEach((input, i) => {
2202-
input.name = input.name || `__arg${i}`;
2203+
input.name = `arg${i}`;
22032204
});
22042205

22052206
const decodedLog = decodeEventLog({

0 commit comments

Comments
 (0)