Skip to content

Commit

Permalink
#85: updated for latest js sdk usages (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreuland authored Dec 7, 2023
1 parent 2d9480f commit 2f86c38
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down
2 changes: 1 addition & 1 deletion events.ts
Original file line number Diff line number Diff line change
@@ -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' })
Expand Down
2 changes: 1 addition & 1 deletion invoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
SorobanRpc,
scValToNative,
xdr
} from 'stellar-sdk';
} from '@stellar/stellar-sdk';

const { Server } = SorobanRpc;

Expand Down
5 changes: 5 additions & 0 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2f86c38

Please sign in to comment.