Skip to content

Commit 6570db3

Browse files
committed
use spread operator for setMaxFee
1 parent 8b0be19 commit 6570db3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model/transaction/Transaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export abstract class Transaction {
200200
* @returns {TransferTransaction}
201201
*/
202202
public setMaxFee(feeMultiplier: number): Transaction {
203-
return Object.assign({__proto__: Object.getPrototypeOf(this)}, this, {maxFee: UInt64.fromUint(this.size * feeMultiplier)});
203+
return {...Object.getPrototypeOf(this), maxFee: UInt64.fromUint(this.size * feeMultiplier)};
204204
}
205205

206206
/**

0 commit comments

Comments
 (0)