Skip to content

Commit 17383e8

Browse files
Merge pull request #184 from InjectiveLabs/f/fix_relative_import
chore: fix Coin import
2 parents f28c278 + fa02ca6 commit 17383e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyinjective/composer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from .proto.injective.exchange.v1beta1 import authz_pb2 as injective_authz_pb
1111

1212
from .proto.cosmos.bank.v1beta1 import tx_pb2 as cosmos_bank_tx_pb
13-
from .proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_base_coin_pb
1413

1514
from .proto.injective.exchange.v1beta1 import tx_pb2 as injective_exchange_tx_pb
1615
from .proto.injective.exchange.v1beta1 import exchange_pb2 as injective_exchange_pb
@@ -28,6 +27,8 @@
2827

2928
from .proto.cosmos.gov.v1beta1 import tx_pb2 as cosmos_gov_tx_pb
3029

30+
from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2
31+
3132
from .constant import Denom
3233
from .utils import *
3334
from typing import List
@@ -40,7 +41,7 @@ def __init__(self, network: str):
4041
self.network = network
4142

4243
def Coin(self, amount: int, denom: str):
43-
return cosmos_base_coin_pb.Coin(amount=str(amount), denom=denom)
44+
return cosmos_dot_base_dot_v1beta1_dot_coin__pb2.Coin(amount=str(amount), denom=denom)
4445

4546
def get_order_mask(self, **kwargs):
4647
order_mask = 0

0 commit comments

Comments
 (0)