Skip to content

Commit

Permalink
fix: explicit return types
Browse files Browse the repository at this point in the history
  • Loading branch information
grothem committed Oct 26, 2023
1 parent 7dfe344 commit 3c5fc7b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/contract-helpers/src/token-wrapper/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ export class TokenWrapperService
return this._contract.getTokenOutForTokenIn(amount);
}

public supplyToken(amount: string, onBehalfOf: string, referralCode: string) {
public supplyToken(
amount: string,
onBehalfOf: string,
referralCode: string,
): PopulatedTransaction {
const data = this.contractInterface.encodeFunctionData('supplyToken', [
amount,
onBehalfOf,
Expand All @@ -94,7 +98,7 @@ export class TokenWrapperService
referralCode,
deadline,
signature,
}: SupplyTokenWithPermitParams) {
}: SupplyTokenWithPermitParams): PopulatedTransaction {
const sig: Signature = splitSignature(signature);

const permitStruct: IBaseTokenWrapper.PermitSignatureStruct = {
Expand All @@ -116,7 +120,7 @@ export class TokenWrapperService
};
}

public withdrawToken(amount: string, user: string) {
public withdrawToken(amount: string, user: string): PopulatedTransaction {
const data = this.contractInterface.encodeFunctionData('withdrawToken', [
amount,
user,
Expand All @@ -134,7 +138,7 @@ export class TokenWrapperService
user: string,
deadline: string,
signature: SignatureLike,
) {
): PopulatedTransaction {
const sig: Signature = splitSignature(signature);

const permitStruct: IBaseTokenWrapper.PermitSignatureStruct = {
Expand Down

0 comments on commit 3c5fc7b

Please sign in to comment.