Skip to content

Commit 41902d4

Browse files
author
Xiao Li
committed
upgrade to latest testnet, fix account role missing fields
1 parent c319ffa commit 41902d4

File tree

8 files changed

+1718
-282
lines changed

8 files changed

+1718
-282
lines changed

libra

Submodule libra updated from 001cda3 to 0102f6f

python/codegen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LIBRA=../libra
88

99
# Add transaction builders
1010
(cd "$LIBRA" && cargo build -p transaction-builder-generator)
11-
"$LIBRA/target/debug/transaction-builder-generator"\
11+
"$LIBRA/target/debug/generate-transaction-builders"\
1212
--language python3\
1313
--module-name stdlib\
1414
--with-libra-types "$LIBRA/testsuite/generate-format/tests/staged/libra.yaml"\

python/src/pylibra/_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def transactions_by_range(
5555

5656
def transaction_by_acc_seq(
5757
self, addr_hex: str, seq: int, include_events: bool = False
58-
) -> typing.Tuple[typing.Optional[SignedTransaction], typing.List[typing.Union[Event, PaymentEvent]],]:
58+
) -> typing.Tuple[typing.Optional[SignedTransaction], typing.List[typing.Union[Event, PaymentEvent]]]:
5959
raise NotImplementedError()
6060

6161
def get_events(self, key_hex: str, start: int, limit: int) -> typing.List[typing.Union[Event, PaymentEvent]]:

python/src/pylibra/_types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ class ParentVASP:
1515
expiration_time: int
1616
human_name: str
1717
num_children: int
18+
base_url_rotation_events_key: str
19+
compliance_key_rotation_events_key: str
1820

1921

2022
@dataclasses.dataclass

python/src/pylibra/lcs/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ def serialize(obj: typing.Any, obj_type) -> bytes:
209209
if not dataclasses.is_dataclass(obj_type):
210210
raise ValueError("Unexpected type", obj_type)
211211

212+
# pyre-ignore
212213
if not isinstance(obj, obj_type):
213214
raise ValueError("Wrong Value for the type", obj, obj_type)
214215

0 commit comments

Comments
 (0)