casper-ecosystem / casper-js-sdk

TypeScript Casper Client SDK
Apache License 2.0
71 stars 60 forks source link

Setup tests in a way there will run both in mainnet and testnet env #360

Closed hoffmannjan closed 11 months ago

hoffmannjan commented 11 months ago

you can get the info from

curl -s -X POST --data-raw '{"jsonrpc": "2.0", "id": 1, "method": "info_get_status"}' -H 'Content-Type: application/json' https://rpc.mainnet.casperlabs.io/rpc | jq -r .result.build_version for mainnet

curl -s -X POST --data-raw '{"jsonrpc": "2.0", "id": 1, "method": "info_get_status"}' -H 'Content-Type: application/json' https://rpc.testnet.casperlabs.io/rpc | jq -r .result.build_version for testnet

please modify github actions scripts