File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -442,14 +442,20 @@ export class EVMStepExecutor extends BaseStepExecutor {
442
442
443
443
calls . push ( transferCall )
444
444
445
- txHash = ( await getAction (
445
+ const sendCallsResult = ( await getAction (
446
446
this . client ,
447
447
sendCalls ,
448
448
'sendCalls'
449
449
) ( {
450
450
account : this . client . account ! ,
451
451
calls,
452
452
} ) ) as Address
453
+ // EIP-5792 spec was updated to return an object with id instead of string hash directly
454
+ // This check allows backwards compatibility during transition period
455
+ txHash =
456
+ typeof sendCallsResult === 'object'
457
+ ? ( sendCallsResult as { id : Hash } ) ?. id
458
+ : sendCallsResult
453
459
txType = 'batched'
454
460
} else if ( isRelayerTransaction ) {
455
461
const relayerTypedData = step . typedData . find (
You can’t perform that action at this time.
0 commit comments