File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -403,14 +403,18 @@ export const getPopulatedOrErroredTransaction = async (
403
403
? queuedTransaction . accountAddress
404
404
: queuedTransaction . from ;
405
405
406
+ const to = queuedTransaction . to ?? queuedTransaction . target ;
407
+
406
408
if ( ! from ) throw new Error ( "Invalid transaction parameters: from" ) ;
409
+ if ( ! to ) throw new Error ( "Invalid transaction parameters: to" ) ;
407
410
408
411
const populatedTransaction = await toSerializableTransaction ( {
409
412
from : getChecksumAddress ( from ) ,
410
413
transaction : {
411
414
client : thirdwebClient ,
412
415
chain : await getChain ( queuedTransaction . chainId ) ,
413
416
...queuedTransaction ,
417
+ to : getChecksumAddress ( to ) ,
414
418
// if transaction is EOA, we stub the nonce to reduce RPC calls
415
419
nonce : queuedTransaction . isUserOp ? undefined : 1 ,
416
420
} ,
You can’t perform that action at this time.
0 commit comments