Skip to content

Commit

Permalink
arg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BlaineHeffron committed May 13, 2024
1 parent 5dc77a6 commit 8ed985e
Showing 1 changed file with 1 addition and 1 deletion.
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 = Buffer.from(wasmHash, format);
const wasmHashBuffer = wasmHash instanceof String ? Buffer.from(wasmHash, format) : wasmHash as Buffer;

const ledgerKeyWasmHash = xdr.LedgerKey.contractCode(
new xdr.LedgerKeyContractCode({
Expand Down

0 comments on commit 8ed985e

Please sign in to comment.