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

@@ -1,6 +1,6 @@
from xrpl.transaction import submit_and_wait
from xrpl.models.transactions.nftoken_mint import NFTokenMint, NFTokenMintFlag
from xrpl.models.transactions.account_set import AccountSet, AccountSetFlag
from xrpl.models.transactions.account_set import AccountSet, AccountSetAsfFlag
from xrpl.wallet import generate_faucet_wallet
from xrpl.models.requests import AccountNFTs
from xrpl.clients import JsonRpcClient
@@ -40,7 +40,7 @@ print(f" Seed: {nftoken_minter_wallet.seed}")
print(f"\nAuthorizing account {minterAddr} as a NFT minter on account {issuerAddr}...")
authorize_minter_tx = AccountSet(
account=issuerAddr,
set_flag=AccountSetFlag.ASF_AUTHORIZED_NFTOKEN_MINTER,
set_flag=AccountSetAsfFlag.ASF_AUTHORIZED_NFTOKEN_MINTER,
nftoken_minter=minterAddr
)