@@ -687,6 +687,9 @@ sendTransaction = {
687687 isConstructor
688688 } ) : string [ ] {
689689 let value ;
690+ const transactionHash = isConstructor
691+ ? `null`
692+ : `encBackupEvent?.[0]?.transactionHash || null` ;
690693 const commitmentType = ! Array . isArray ( valueType ) && [ 'bytes20' , 'address' ] . includes ( valueType )
691694 ? `\n type: '${ valueType } ',`
692695 : '' ;
@@ -708,6 +711,7 @@ sendTransaction = {
708711 \nawait storeCommitment({
709712 hash: ${ stateName } _newCommitment,
710713 name: '${ mappingName } ',
714+ transactionHash: ${ transactionHash } ,
711715 mappingKey: ${ mappingKey === `` ? `null` : `${ mappingKey } ` } ,
712716 ${ commitmentType }
713717 ${ commitmentTypeNames }
@@ -729,6 +733,7 @@ sendTransaction = {
729733 \nawait storeCommitment({
730734 hash: ${ stateName } _2_newCommitment,
731735 name: '${ mappingName } ',
736+ transactionHash: ${ transactionHash } ,
732737 mappingKey: ${ mappingKey === `` ? `null` : `${ mappingKey } ` } ,
733738 ${ commitmentType }
734739 ${ commitmentTypeNames }
@@ -755,6 +760,7 @@ sendTransaction = {
755760 \nawait storeCommitment({
756761 hash: ${ stateName } _newCommitment,
757762 name: '${ mappingName } ',
763+ transactionHash: ${ transactionHash } ,
758764 mappingKey: ${ mappingKey === `` ? `null` : `${ mappingKey } ` } ,
759765 ${ commitmentType }
760766 ${ commitmentTypeNames }
0 commit comments