Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Feb 20, 2024
1 parent c0e62e0 commit 55ecb4f
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 7 deletions.
4 changes: 2 additions & 2 deletions integration_tests/eip712_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
)
from .protobuf.ethermint.crypto.v1.ethsecp256k1.keys_pb2 import PubKey as EPubKey
from .protobuf.ethermint.types.v1.web3_pb2 import ExtensionOptionsWeb3Tx
from google.protobuf import any_pb2 as Any
from .protobuf.google.protobuf.any_pb2 import Any

LEGACY_AMINO = 127
SIGN_DIRECT = 1
Expand Down Expand Up @@ -230,7 +230,7 @@ def create_transaction_with_multiple_messages(
chain_id,
account_number,
)
hash_direct = sha3.keccak_256()
hash_direct = keccak()
hash_direct.update(sign_doc_direct.SerializeToString())
to_sign_direct = hash_direct.hexdigest()
return {
Expand Down
45 changes: 40 additions & 5 deletions integration_tests/test_ibc_rly.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,42 @@ def amount_dict(amt, denom):
def coin_received(receiver, amt, denom):
return {
"receiver": receiver,
"amount": amount_dict(amt, denom),
"amount": [
AttributeDict(
{
"amount": amt,
"denom": denom,
}
)
],
}


def coin_base(minter, amt, denom):
return {
"minter": minter,
"amount": amount_dict(amt, denom),
"amount": [
AttributeDict(
{
"amount": amt,
"denom": denom,
}
)
],
}


def coin_spent(spender, amt, denom):
return {
"spender": spender,
"amount": amount_dict(amt, denom),
"amount": [
AttributeDict(
{
"amount": amt,
"denom": denom,
}
)
],
}


Expand All @@ -109,14 +130,28 @@ def transfer(src, dst, amt, denom):
return {
"recipient": dst,
"sender": src,
"amount": amount_dict(amt, denom),
"amount": [
AttributeDict(
{
"amount": amt,
"denom": denom,
}
)
],
}


def burn(burner, amt, denom):
return {
"burner": burner,
"amount": amount_dict(amt, denom),
"amount": [
AttributeDict(
{
"amount": amt,
"denom": denom,
}
)
],
}


Expand Down

0 comments on commit 55ecb4f

Please sign in to comment.