Skip to content

Commit 06b8932

Browse files
committed
fix: fix typing of force transfer args
1 parent ae6030d commit 06b8932

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Polymath.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,12 +438,15 @@ export class Polymath {
438438
public forceTransfer = async (args: {
439439
securityTokenId: string;
440440
value: BigNumber;
441-
custodianAddress: string;
441+
from: string;
442+
to: string;
443+
log: string;
444+
data: string;
442445
}) => {
443-
const { securityTokenId, custodianAddress, value } = args;
446+
const { securityTokenId, value, from, to, log, data } = args;
444447
const { symbol } = this.SecurityToken.unserialize(securityTokenId);
445448

446-
const procedure = new ForceTransfer({ symbol, custodianAddress, value }, this.context);
449+
const procedure = new ForceTransfer({ symbol, value, from, to, log, data }, this.context);
447450

448451
return await procedure.prepare();
449452
};

src/types/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ export interface ForceTransferArgs {
267267
from: string;
268268
to: string;
269269
symbol: string;
270-
custodianAddress: string;
271270
value: BigNumber;
272271
data?: string;
273272
log?: string;

0 commit comments

Comments
 (0)