Skip to content

Commit

Permalink
add get_ibc_cro_denom
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Jul 28, 2022
1 parent f5239e8 commit 047658e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions integration_tests/test_ibc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from pathlib import Path
from typing import NamedTuple
import time
import hashlib

import pytest
from pystarport import ports
Expand Down Expand Up @@ -72,6 +73,13 @@ def get_balance(chain, addr, denom):
return chain.cosmos_cli().balance(addr, denom)


def get_ibc_cro_denom(channel="channel-0"):
denom_hash = (
hashlib.sha256(f"transfer/{channel}/basecro".encode()).hexdigest().upper()
)
return f"ibc/{denom_hash}"


def test_ibc(ibc):
"test sending basecro from crypto-org chain to cronos"
# wait for hermes
Expand Down

0 comments on commit 047658e

Please sign in to comment.