@@ -123,7 +123,7 @@ export const asMethodCallParams = async (transaction: BuildMethodCallTransaction
123123 )
124124
125125 return {
126- sender : transaction . sender . resolvedAddress ! ,
126+ sender : transaction . sender . resolvedAddress ,
127127 appId : BigInt ( transaction . applicationId ) ,
128128 method : transaction . methodDefinition . abiMethod ,
129129 args : args ,
@@ -158,7 +158,7 @@ const asMethodCallTransactions = async (transaction: BuildMethodCallTransactionR
158158
159159export const asAppCallTransactionParams = ( transaction : BuildAppCallTransactionResult ) : AppCallParams => {
160160 return {
161- sender : transaction . sender . resolvedAddress ! ,
161+ sender : transaction . sender . resolvedAddress ,
162162 appId : BigInt ( transaction . applicationId ) ,
163163 args : transaction . args . map ( ( arg ) => base64ToBytes ( arg ) ) ,
164164 onComplete : transaction . onComplete ,
@@ -181,7 +181,7 @@ const asAppCallTransaction = async (transaction: BuildAppCallTransactionResult):
181181
182182export const asApplicationCreateTransactionParams = ( transaction : BuildApplicationCreateTransactionResult ) : AppCreateParams => {
183183 return {
184- sender : transaction . sender . resolvedAddress ! ,
184+ sender : transaction . sender . resolvedAddress ,
185185 args : transaction . args . map ( ( arg ) => base64ToBytes ( arg ) ) ,
186186 onComplete : transaction . onComplete ,
187187 approvalProgram : base64ToBytes ( transaction . approvalProgram ) ,
@@ -206,7 +206,7 @@ const asApplicationCreateTransaction = async (transaction: BuildApplicationCreat
206206
207207export const asApplicationUpdateTransactionParams = ( transaction : BuildApplicationUpdateTransactionResult ) : AppUpdateParams => {
208208 return {
209- sender : transaction . sender . resolvedAddress ! ,
209+ sender : transaction . sender . resolvedAddress ,
210210 appId : BigInt ( transaction . applicationId ) ,
211211 args : transaction . args . map ( ( arg ) => base64ToBytes ( arg ) ) ,
212212 approvalProgram : base64ToBytes ( transaction . approvalProgram ) ,
@@ -239,8 +239,8 @@ export const asAssetTransferTransactionParams = (
239239 amount = BigInt ( convertedAmount . toString ( ) )
240240 }
241241 return {
242- sender : transaction . sender . resolvedAddress ! ,
243- receiver : 'receiver' in transaction ? transaction . receiver . resolvedAddress : transaction . sender . resolvedAddress ! ,
242+ sender : transaction . sender . resolvedAddress ,
243+ receiver : 'receiver' in transaction ? transaction . receiver . resolvedAddress : transaction . sender . resolvedAddress ,
244244 clawbackTarget : 'clawbackTarget' in transaction ? transaction . clawbackTarget . resolvedAddress : undefined ,
245245 closeAssetTo : 'closeRemainderTo' in transaction ? transaction . closeRemainderTo . resolvedAddress : undefined ,
246246 assetId : BigInt ( transaction . asset . id ) ,
@@ -259,7 +259,7 @@ const asAssetTransferTransaction = async (
259259) : Promise < algosdk . Transaction > => {
260260 if (
261261 transaction . type === BuildableTransactionType . AssetClawback &&
262- ( ! transaction . asset . clawback || transaction . sender . resolvedAddress ! !== transaction . asset . clawback )
262+ ( ! transaction . asset . clawback || transaction . sender . resolvedAddress !== transaction . asset . clawback )
263263 ) {
264264 throw new Error ( 'Invalid clawback transaction' )
265265 }
@@ -270,7 +270,7 @@ const asAssetTransferTransaction = async (
270270
271271export const asAssetCreateTransactionParams = ( transaction : BuildAssetCreateTransactionResult ) : AssetCreateParams => {
272272 return {
273- sender : transaction . sender . resolvedAddress ! ,
273+ sender : transaction . sender . resolvedAddress ,
274274 total : transaction . total ,
275275 decimals : transaction . decimals ,
276276 assetName : transaction . assetName ,
@@ -294,7 +294,7 @@ const asAssetCreateTransaction = async (transaction: BuildAssetCreateTransaction
294294
295295const asAssetReconfigureTransactionParams = ( transaction : BuildAssetReconfigureTransactionResult ) : AssetConfigParams => {
296296 return {
297- sender : transaction . sender . resolvedAddress ! ,
297+ sender : transaction . sender . resolvedAddress ,
298298 assetId : BigInt ( transaction . asset . id ) ,
299299 manager : transaction . manager ? transaction . manager . resolvedAddress : undefined ,
300300 reserve : transaction . reserve ? transaction . reserve . resolvedAddress : undefined ,
@@ -312,7 +312,7 @@ const asAssetReconfigureTransaction = async (transaction: BuildAssetReconfigureT
312312
313313const asAssetDestroyTransactionParams = ( transaction : BuildAssetDestroyTransactionResult ) : AssetDestroyParams => {
314314 return {
315- sender : transaction . sender . resolvedAddress ! ,
315+ sender : transaction . sender . resolvedAddress ,
316316 assetId : BigInt ( transaction . asset . id ) ,
317317 }
318318}
@@ -338,7 +338,7 @@ export const asAssetConfigTransactionParams = (
338338
339339export const asAssetFreezeTransactionParams = ( transaction : BuildAssetFreezeTransactionResult ) : AssetFreezeParams => {
340340 return {
341- sender : transaction . sender . resolvedAddress ! ,
341+ sender : transaction . sender . resolvedAddress ,
342342 assetId : BigInt ( transaction . asset . id ) ,
343343 account : transaction . freezeTarget . resolvedAddress ,
344344 frozen : transaction . frozen ,
@@ -348,7 +348,7 @@ export const asAssetFreezeTransactionParams = (transaction: BuildAssetFreezeTran
348348 }
349349}
350350const asAssetFreezeTransaction = async ( transaction : BuildAssetFreezeTransactionResult ) : Promise < algosdk . Transaction > => {
351- if ( ! transaction . asset . freeze || transaction . sender . resolvedAddress ! !== transaction . asset . freeze ) {
351+ if ( ! transaction . asset . freeze || transaction . sender . resolvedAddress !== transaction . asset . freeze ) {
352352 throw new Error ( 'Invalid freeze transaction' )
353353 }
354354
@@ -365,7 +365,7 @@ export const asKeyRegistrationTransactionParams = (
365365 invariant ( transaction . stateProofKey , 'State proof key is required' )
366366
367367 return {
368- sender : transaction . sender . resolvedAddress ! ,
368+ sender : transaction . sender . resolvedAddress ,
369369 voteKey : Uint8Array . from ( Buffer . from ( transaction . voteKey , 'base64' ) ) ,
370370 selectionKey : Uint8Array . from ( Buffer . from ( transaction . selectionKey , 'base64' ) ) ,
371371 stateProofKey : Uint8Array . from ( Buffer . from ( transaction . stateProofKey , 'base64' ) ) ,
@@ -379,7 +379,7 @@ export const asKeyRegistrationTransactionParams = (
379379 }
380380
381381 return {
382- sender : transaction . sender . resolvedAddress ! ,
382+ sender : transaction . sender . resolvedAddress ,
383383 }
384384}
385385
0 commit comments