From 2f86c38e3aa74748b687774bc21a67e9d5c2999b Mon Sep 17 00:00:00 2001 From: shawn Date: Thu, 7 Dec 2023 15:37:44 -0800 Subject: [PATCH] #85: updated for latest js sdk usages (#87) --- e2e.go | 2 +- events.ts | 2 +- invoke.ts | 2 +- start | 5 +++++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/e2e.go b/e2e.go index 78ffc46..d728db2 100644 --- a/e2e.go +++ b/e2e.go @@ -89,7 +89,7 @@ type LatestLedgerResult struct { // Hash of the latest ledger as a hex-encoded string Hash string `json:"id"` // Stellar Core protocol version associated with the ledger. - ProtocolVersion uint32 `json:"protocolVersion,string"` + ProtocolVersion uint32 `json:"protocolVersion"` // Sequence number of the latest ledger. Sequence uint32 `json:"sequence"` } diff --git a/events.ts b/events.ts index 727a178..272932b 100755 --- a/events.ts +++ b/events.ts @@ -1,7 +1,7 @@ #!/usr/bin/env ts-node-script import { ArgumentParser } from 'argparse'; -import { Contract, SorobanRpc } from 'stellar-sdk'; +import { Contract, SorobanRpc } from '@stellar/stellar-sdk'; async function main() { const parser = new ArgumentParser({ description: 'Get contract events' }) diff --git a/invoke.ts b/invoke.ts index 1590833..5381efd 100755 --- a/invoke.ts +++ b/invoke.ts @@ -8,7 +8,7 @@ import { SorobanRpc, scValToNative, xdr -} from 'stellar-sdk'; +} from '@stellar/stellar-sdk'; const { Server } = SorobanRpc; diff --git a/start b/start index 46d1126..4f627eb 100755 --- a/start +++ b/start @@ -101,6 +101,11 @@ function main() { soroban_rpc_status + # quickstart runs horizon, but sys tests don't need it. + if [ "$LOCAL_CORE" = "true" ]; then + supervisorctl stop horizon + fi + print_screen_output " RUST_TOOLCHAIN_VERSION=$(rustc --version 2>/dev/null || echo"n/a" )" print_screen_output " SOROBAN_CLI_CRATE_VERSION=$(soroban version 2>/dev/null || echo "n/a" )" print_screen_output " SOROBAN_EXAMPLES_GIT_HASH=$SOROBAN_EXAMPLES_GIT_HASH"