Skip to content

Commit be2b377

Browse files
committed
ci: fix jsonrpc examples
1 parent 61ee7f8 commit be2b377

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

examples/example_jsonrpc_get_blockchain_info.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
async def main() -> None:
66
client_url = "https://testnet1.pactus.org/jsonrpc"
7-
client = PactusOpenRPCClient(headers={}, client_url=client_url, timeout=300)
7+
client = PactusOpenRPCClient(
8+
headers={},
9+
timeout=300,
10+
client_url=client_url)
811

912
res = await client.pactus.blockchain.get_blockchain_info()
1013

examples/example_jsonrpc_get_node_info.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
async def main() -> None:
66
client_url = "https://testnet1.pactus.org/jsonrpc"
7-
client = PactusOpenRPCClient(headers={}, client_url=client_url, timeout=300)
7+
client = PactusOpenRPCClient(
8+
headers={},
9+
timeout=300,
10+
client_url=client_url)
811

912
res = await client.pactus.network.get_node_info()
1013

0 commit comments

Comments
 (0)