Skip to content

Commit

Permalink
fix type check and test
Browse files Browse the repository at this point in the history
  • Loading branch information
BlaineHeffron committed May 13, 2024
1 parent 8ed985e commit 8243d56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/soroban/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export class Server {
wasmHash: Buffer | string,
format: undefined | "hex" | "base64" = undefined
): Promise<Buffer> {
const wasmHashBuffer = wasmHash instanceof String ? Buffer.from(wasmHash, format) : wasmHash as Buffer;
const wasmHashBuffer = typeof wasmHash === "string" ? Buffer.from(wasmHash, format) : wasmHash as Buffer;

const ledgerKeyWasmHash = xdr.LedgerKey.contractCode(
new xdr.LedgerKeyContractCode({
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function clientFor(contract, { keypair = generateFundedKeypair(), contract
allowHttp: true,
publicKey: keypair.publicKey(),
...wallet,
});
}, "hex");
return {
keypair,
client,
Expand Down

0 comments on commit 8243d56

Please sign in to comment.