@@ -252,13 +252,16 @@ async function proposeMintTransactionDirect(amount: string, to: string): Promise
252252 const signature1 = await safeSdkOwner1 . signTransactionHash ( txHash ) ;
253253 console . log ( 'signature1' , signature1 )
254254
255+ const owner1SignerAddress = await owner1Signer . getAddress ( )
256+ const owner1SignerCheckSummedAddress = ethers . utils . getAddress ( owner1SignerAddress )
257+
255258 const pendingTx = {
256259 to : WNCG_CONTRACT_ADDRESS ,
257260 value : "0" ,
258261 data,
259262 nonce : nonce . toNumber ( ) ,
260263 safeTxHash : txHash ,
261- signatures : new Map ( [ [ await owner1Signer . getAddress ( ) , signature1 . data ] ] ) ,
264+ signatures : new Map ( [ [ owner1SignerCheckSummedAddress , signature1 . data ] ] ) ,
262265 } ;
263266
264267 console . log ( "Transaction proposed directly:" , {
@@ -289,12 +292,14 @@ async function confirmTransactionDirect(pendingTx: any) {
289292 } ) ;
290293
291294 const owner2Address = await owner2Signer . getAddress ( ) ;
295+ const owner2CheckSummedAddress = ethers . utils . getAddress ( owner2Address )
296+
292297 console . log ( "Owner 2 Address:" , owner2Address ) ;
293298 console . log ( "Pending Transaction at the start of confirmTransactionDirect:" , pendingTx . safeTxHash ) ;
294299
295300 const signature2 = await safeSdkOwner2 . signTransactionHash ( pendingTx . safeTxHash ) ;
296301 console . log ( "Signature 2:" , signature2 ) ;
297- pendingTx . signatures . set ( owner2Address , signature2 . data ) ;
302+ pendingTx . signatures . set ( owner2CheckSummedAddress , signature2 . data ) ;
298303
299304 console . log ( 'Pending Transaction at the end of confirmTransactionDirect:' , pendingTx ) ;
300305 console . log ( "Transaction confirmed directly" ) ;
@@ -327,6 +332,7 @@ async function executeTransactionDirect(pendingTx: any): Promise<string> {
327332 ) ;
328333
329334 const signedOwners = [ ...pendingTx . signatures . keys ( ) ]
335+ console . log ( 'signedOwners' , signedOwners )
330336
331337 console . log (
332338 `Collected ${ signedOwners . length } /${ threshold } required signatures`
0 commit comments