@@ -44,7 +44,7 @@ export class AccountKeyLinkTransaction extends Transaction {
4444 /**
4545 * Create a link account transaction object
4646 * @param deadline - The deadline to include the transaction.
47- * @param remotePublicKey - The public key of the remote account.
47+ * @param linkedPublicKey - The public key of the remote account.
4848 * @param linkAction - The account link action.
4949 * @param maxFee - (Optional) Max fee defined by the sender
5050 * @param signature - (Optional) Transaction signature
@@ -53,7 +53,7 @@ export class AccountKeyLinkTransaction extends Transaction {
5353 */
5454 public static create (
5555 deadline : Deadline ,
56- remotePublicKey : string ,
56+ linkedPublicKey : string ,
5757 linkAction : LinkAction ,
5858 networkType : NetworkType ,
5959 maxFee : UInt64 = new UInt64 ( [ 0 , 0 ] ) ,
@@ -65,7 +65,7 @@ export class AccountKeyLinkTransaction extends Transaction {
6565 TransactionVersion . ACCOUNT_KEY_LINK ,
6666 deadline ,
6767 maxFee ,
68- remotePublicKey ,
68+ linkedPublicKey ,
6969 linkAction ,
7070 signature ,
7171 signer ,
@@ -77,7 +77,7 @@ export class AccountKeyLinkTransaction extends Transaction {
7777 * @param version
7878 * @param deadline
7979 * @param maxFee
80- * @param remotePublicKey
80+ * @param linkedPublicKey
8181 * @param linkAction
8282 * @param signature
8383 * @param signer
@@ -91,7 +91,7 @@ export class AccountKeyLinkTransaction extends Transaction {
9191 /**
9292 * The public key of the remote account.
9393 */
94- public readonly remotePublicKey : string ,
94+ public readonly linkedPublicKey : string ,
9595 /**
9696 * The account link action.
9797 */
@@ -118,7 +118,7 @@ export class AccountKeyLinkTransaction extends Transaction {
118118 const signature = payload . substring ( 16 , 144 ) ;
119119 const transaction = AccountKeyLinkTransaction . create (
120120 isEmbedded ? Deadline . create ( ) : Deadline . createFromDTO ( ( builder as AccountKeyLinkTransactionBuilder ) . getDeadline ( ) . timestamp ) ,
121- Convert . uint8ToHex ( builder . getRemotePublicKey ( ) . key ) ,
121+ Convert . uint8ToHex ( builder . getLinkedPublicKey ( ) . key ) ,
122122 builder . getLinkAction ( ) . valueOf ( ) ,
123123 networkType ,
124124 isEmbedded ? new UInt64 ( [ 0 , 0 ] ) : new UInt64 ( ( builder as AccountKeyLinkTransactionBuilder ) . fee . amount ) ,
@@ -160,7 +160,7 @@ export class AccountKeyLinkTransaction extends Transaction {
160160 TransactionType . ACCOUNT_KEY_LINK . valueOf ( ) ,
161161 new AmountDto ( this . maxFee . toDTO ( ) ) ,
162162 new TimestampDto ( this . deadline . toDTO ( ) ) ,
163- new KeyDto ( Convert . hexToUint8 ( this . remotePublicKey ) ) ,
163+ new KeyDto ( Convert . hexToUint8 ( this . linkedPublicKey ) ) ,
164164 this . linkAction . valueOf ( ) ,
165165 ) ;
166166 return transactionBuilder . serialize ( ) ;
@@ -176,7 +176,7 @@ export class AccountKeyLinkTransaction extends Transaction {
176176 this . versionToDTO ( ) ,
177177 this . networkType . valueOf ( ) ,
178178 TransactionType . ACCOUNT_KEY_LINK . valueOf ( ) ,
179- new KeyDto ( Convert . hexToUint8 ( this . remotePublicKey ) ) ,
179+ new KeyDto ( Convert . hexToUint8 ( this . linkedPublicKey ) ) ,
180180 this . linkAction . valueOf ( ) ,
181181 ) ;
182182 }
@@ -196,6 +196,6 @@ export class AccountKeyLinkTransaction extends Transaction {
196196 * @returns {boolean }
197197 */
198198 public shouldNotifyAccount ( address : Address ) : boolean {
199- return super . isSigned ( address ) || Address . createFromPublicKey ( this . remotePublicKey , this . networkType ) . equals ( address ) ;
199+ return super . isSigned ( address ) || Address . createFromPublicKey ( this . linkedPublicKey , this . networkType ) . equals ( address ) ;
200200 }
201201}
0 commit comments