Skip to content

Commit

Permalink
fix return type for build
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdimatteo committed Feb 29, 2024
1 parent 2688d90 commit 229f31e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
20 changes: 10 additions & 10 deletions src/governor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export class GovernorClient {
settings,
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -330,7 +330,7 @@ export class GovernorClient {
settings(): string {
return this.contract
.call("settings", ...this.spec.funcArgsToScVals("settings", {}))
.toXDR();
.toXDR("base64");
}

/**
Expand Down Expand Up @@ -377,7 +377,7 @@ export class GovernorClient {
description,
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -393,7 +393,7 @@ export class GovernorClient {
proposal_id,
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -409,7 +409,7 @@ export class GovernorClient {
proposal_id,
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -425,7 +425,7 @@ export class GovernorClient {
proposal_id,
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -449,7 +449,7 @@ export class GovernorClient {
proposal_id,
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand Down Expand Up @@ -477,7 +477,7 @@ export class GovernorClient {
support,
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -495,7 +495,7 @@ export class GovernorClient {
proposal_id,
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -511,6 +511,6 @@ export class GovernorClient {
proposal_id,
})
)
.toXDR();
.toXDR("base64");
}
}
38 changes: 19 additions & 19 deletions src/votes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class VotesClient {
spender: new Address(spender),
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand Down Expand Up @@ -188,7 +188,7 @@ export class VotesClient {
expiration_ledger,
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -204,7 +204,7 @@ export class VotesClient {
id: new Address(id),
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand Down Expand Up @@ -232,7 +232,7 @@ export class VotesClient {
amount,
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand Down Expand Up @@ -264,7 +264,7 @@ export class VotesClient {
amount,
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -282,7 +282,7 @@ export class VotesClient {
amount,
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand Down Expand Up @@ -310,7 +310,7 @@ export class VotesClient {
amount,
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -320,7 +320,7 @@ export class VotesClient {
decimals(): string {
return this.contract
.call("decimals", ...this.spec.funcArgsToScVals("decimals", {}))
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -330,7 +330,7 @@ export class VotesClient {
name(): string {
return this.contract
.call("name", ...this.spec.funcArgsToScVals("name", {}))
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -340,7 +340,7 @@ export class VotesClient {
symbol(): string {
return this.contract
.call("symbol", ...this.spec.funcArgsToScVals("symbol", {}))
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -358,7 +358,7 @@ export class VotesClient {
governor: new Address(governor),
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -368,7 +368,7 @@ export class VotesClient {
totalSupply(): string {
return this.contract
.call("total_supply", ...this.spec.funcArgsToScVals("total_supply", {}))
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -384,7 +384,7 @@ export class VotesClient {
sequence,
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -400,7 +400,7 @@ export class VotesClient {
account: new Address(account),
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -418,7 +418,7 @@ export class VotesClient {
sequence,
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -434,7 +434,7 @@ export class VotesClient {
account: new Address(account),
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -458,7 +458,7 @@ export class VotesClient {
delegatee: new Address(delegatee),
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -476,7 +476,7 @@ export class VotesClient {
amount,
})
)
.toXDR();
.toXDR("base64");
}

/**
Expand All @@ -494,6 +494,6 @@ export class VotesClient {
amount,
})
)
.toXDR();
.toXDR("base64");
}
}

0 comments on commit 229f31e

Please sign in to comment.