Change to AccountSetAsfFlag for enum

This commit is contained in:
JST5000
2023-06-08 15:43:39 -07:00
parent 89c3dd86da
commit 965d8c20a2
7 changed files with 14 additions and 14 deletions

View File

@@ -23,7 +23,7 @@ cold_settings_tx = xrpl.models.transactions.AccountSet(
transfer_rate=0,
tick_size=5,
domain=bytes.hex("example.com".encode("ASCII")),
set_flag=xrpl.models.transactions.AccountSetFlag.ASF_DEFAULT_RIPPLE,
set_flag=xrpl.models.transactions.AccountSetAsfFlag.ASF_DEFAULT_RIPPLE,
)
print("Sending cold address AccountSet transaction...")
@@ -34,7 +34,7 @@ print(response)
# Configure hot address settings -----------------------------------------------
hot_settings_tx = xrpl.models.transactions.AccountSet(
account=hot_wallet.address,
set_flag=xrpl.models.transactions.AccountSetFlag.ASF_REQUIRE_AUTH,
set_flag=xrpl.models.transactions.AccountSetAsfFlag.ASF_REQUIRE_AUTH,
)
print("Sending hot address AccountSet transaction...")