Skip to content

Commit

Permalink
Fixup env misname, fixup correct api usage
Browse files Browse the repository at this point in the history
  • Loading branch information
sreuland authored and Shaptic committed Nov 2, 2023
1 parent b3f39c3 commit 5821f00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,5 @@ build: build-quickstart build-soroban-cli
--build-arg SOROBAN_CLI_IMAGE_REF=$$SOROBAN_CLI_IMAGE_REF \
--build-arg RUST_TOOLCHAIN_VERSION=$(RUST_TOOLCHAIN_VERSION) \
--build-arg NODE_VERSION=$(NODE_VERSION) \
--build-arg JS_STELLAR_SDK_VERSION=$(JS_STELLAR_SDK_VERSION) \
--build-arg JS_STELLAR_SDK_NPM_VERSION=$(JS_STELLAR_SDK_NPM_VERSION) \
--label org.opencontainers.image.revision="$(SYSTEM_TEST_SHA)" .;
6 changes: 3 additions & 3 deletions invoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function main() {
const sourceAccount = await server.getAccount(account);

// Some hacky param-parsing as csv. Generated Typescript bindings would be better.
const params: xdr.ScVal[] = (functionParams ?? []).split(",").map((param) => {
const params: xdr.ScVal[] = (functionParams ?? '').split(",").map((param) => {
return xdr.ScVal.scvSymbol(param);
});

Expand All @@ -52,10 +52,10 @@ async function main() {
.setTimeout(30)
.build();

const txn = await server.prepareTransaction(originalTxn,networkPassphrase);
const txn = await server.prepareTransaction(originalTxn);
txn.sign(secretKey);
const send = await server.sendTransaction(txn);
if (send.errorResultXdr) {
if (send.errorResult) {
throw new Error(`Transaction failed: ${JSON.stringify(send)}`);
}
let response = await server.getTransaction(send.hash);
Expand Down

0 comments on commit 5821f00

Please sign in to comment.