File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
modules/sdk-coin-apt/test/unit Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11import * as testData from '../resources/apt' ;
22import should from 'should' ;
33import utils from '../../src/lib/utils' ;
4- import { SignedTransaction } from '@aptos-labs/ts-sdk' ;
4+ import { SignedTransaction , TransactionAuthenticatorFeePayer } from '@aptos-labs/ts-sdk' ;
55
66describe ( 'Aptos util library' , function ( ) {
77 describe ( 'isValidAddress' , function ( ) {
@@ -36,6 +36,11 @@ describe('Aptos util library', function () {
3636 describe ( 'isValidDeserialize' , function ( ) {
3737 it ( 'should succeed to correctly deserialize serialized transaction' , function ( ) {
3838 const signedTxn : SignedTransaction = utils . deserializeSignedTransaction ( testData . TRANSFER ) ;
39+ const authenticator = signedTxn . authenticator as TransactionAuthenticatorFeePayer ;
40+ should . equal (
41+ authenticator . fee_payer . address . toString ( ) ,
42+ '0xdbc87a1c816d9bcd06b683c37e80c7162e4d48da7812198b830e4d5d8e0629f2'
43+ ) ;
3944 const rawTx = signedTxn . raw_txn ;
4045 const recipient = utils . getRecipientFromTransactionPayload ( rawTx . payload ) ;
4146 should . equal ( rawTx . sender . toString ( ) , testData . sender2 . address ) ;
You can’t perform that action at this time.
0 commit comments