Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Create Token using Alias to Identify Treasury #2659

Closed
bugbytesinc opened this issue Dec 22, 2021 · 2 comments
Closed

Cannot Create Token using Alias to Identify Treasury #2659

bugbytesinc opened this issue Dec 22, 2021 · 2 comments
Milestone

Comments

@bugbytesinc
Copy link

Description

Trying to create an NFT token definition using a treasury identified by its alias fails.

Steps to reproduce

create an account with pay to alias
try to create an NFT token using the newly created account by its alias
association fails with invalid invalid treasury account for token

Additional context

Log Snippit

Pay to Alias

12/22/2021 1:24:37 AM  TX BODY  { "transactionID": { "transactionValidStart": { "seconds": "1640136277", "nanos": 732356100 }, "accountID": { "accountNum": "1499" } }, "nodeAccountID": { "accountNum": "3" }, "transactionFee": "6000000000", "transactionValidDuration": { "seconds": "120" }, "memo": "Test Account Instance: Creating Test Account on Network", "cryptoTransfer": { "transfers": { "accountAmounts": [ { "accountID": { "accountNum": "1499" }, "amount": "-174598523" }, { "accountID": { "alias": "EiAfL50o6gyYBVNo5wA+aYB+SJEP+RVVgpmqxLKjHIeyEw==" }, "amount": "174598523" } ] } } }
12/22/2021 1:24:37 AM  └─ SIG → { "sigPair": [ { "ed25519": "R9K43H3fs3idmNgPbnxPpyjA992XAYgH3fHHUbwoh9F9u1J8Uj2Nr9t0JgJfT/jvxlqMqATWO58cEU4DiAk8Aw==" } ] }
12/22/2021 1:24:38 AM  RX:(00)  { }
12/22/2021 1:24:38 AM  TX     → { "transactionGetReceipt": { "transactionID": { "transactionValidStart": { "seconds": "1640136277", "nanos": 732356100 }, "accountID": { "accountNum": "1499" } } } }
12/22/2021 1:24:38 AM  RX:(00)  { "transactionGetReceipt": { "header": { }, "receipt": { "status": "UNKNOWN" } } }
12/22/2021 1:24:38 AM  RX:(01)  { "transactionGetReceipt": { "header": { }, "receipt": { "status": "UNKNOWN" } } }
12/22/2021 1:24:39 AM  RX:(02)  { "transactionGetReceipt": { "header": { }, "receipt": { "status": "UNKNOWN" } } }
12/22/2021 1:24:39 AM  RX:(03)  { "transactionGetReceipt": { "header": { }, "receipt": { "status": "UNKNOWN" } } }
12/22/2021 1:24:40 AM  RX:(04)  { "transactionGetReceipt": { "header": { }, "receipt": { "status": "SUCCESS", "exchangeRate": { "currentRate": { "hbarEquiv": 1, "centEquiv": 12, "expirationTime": { "seconds": "4102444800" } }, "nextRate": { "hbarEquiv": 1, "centEquiv": 15, "expirationTime": { "seconds": "4102444800" } } } } } }

Attempt to create NFT

12/22/2021 1:24:41 AM  TX BODY  { "transactionID": { "transactionValidStart": { "seconds": "1640136281", "nanos": 799656600 }, "accountID": { "accountNum": "1499" } }, "nodeAccountID": { "accountNum": "3" }, "transactionFee": "6000000000", "transactionValidDuration": { "seconds": "120" }, "tokenCreation": { "name": "8zWZ@kvZ-t6WULYuqPhKCAzyPpT6YERBq-#ma87dd99#HrYN90", "symbol": "AGSZPWAPDKGVAVKVSKEU", "treasury": { "alias": "EiAfL50o6gyYBVNo5wA+aYB+SJEP+RVVgpmqxLKjHIeyEw==" }, "adminKey": { "ed25519": "Hy+dKOoMmAVTaOcAPmmAfkiRD/kVVYKZqsSyoxyHshM=" }, "kycKey": { "ed25519": "Hy+dKOoMmAVTaOcAPmmAfkiRD/kVVYKZqsSyoxyHshM=" }, "freezeKey": { "ed25519": "Hy+dKOoMmAVTaOcAPmmAfkiRD/kVVYKZqsSyoxyHshM=" }, "wipeKey": { "ed25519": "Hy+dKOoMmAVTaOcAPmmAfkiRD/kVVYKZqsSyoxyHshM=" }, "supplyKey": { "ed25519": "Hy+dKOoMmAVTaOcAPmmAfkiRD/kVVYKZqsSyoxyHshM=" }, "expiry": { "seconds": "1649975882" }, "autoRenewAccount": { "accountNum": "9559" }, "autoRenewPeriod": { "seconds": "7776000" }, "memo": "aEzKJ2rqQG#qDAUsVIm2", "tokenType": "NON_FUNGIBLE_UNIQUE", "supplyType": "FINITE", "maxSupply": "1300000", "pauseKey": { "ed25519": "Hy+dKOoMmAVTaOcAPmmAfkiRD/kVVYKZqsSyoxyHshM=" } } }
12/22/2021 1:24:41 AM  └─ SIG → { "sigPair": [ { "pubKeyPrefix": "Zg==", "ed25519": "93iLZk3j6vq5KzfbndusU/xTqY4TCKvP/oEm+NerwOQl1OL9MntVCiAddvivvQJWSGaGJdvaPcTdU2hLCGz8Cw==" }, { "pubKeyPrefix": "Hw==", "ed25519": "MPrt4dk4ggacq1UBLDGQepVPnVDCs+tyecQp6/bXGbdmk1IpfBUKseR+ZmrPgKGIVl8jxov6LtaiqS8Ls3lTCw==" }, { "pubKeyPrefix": "pQ==", "ed25519": "Qj/LculOcPcewR525MUgwLiCOhYOYl31Sum2FiQG7kMJ9u5QYdmwocY1iS/8miQ7D6vF0bfUDRUyHvvsnX9VCA==" } ] }
12/22/2021 1:24:41 AM  RX:(00)  { }
12/22/2021 1:24:41 AM  TX     → { "transactionGetReceipt": { "transactionID": { "transactionValidStart": { "seconds": "1640136281", "nanos": 799656600 }, "accountID": { "accountNum": "1499" } } } }
12/22/2021 1:24:41 AM  RX:(00)  { "transactionGetReceipt": { "header": { }, "receipt": { "status": "UNKNOWN" } } }
12/22/2021 1:24:42 AM  RX:(01)  { "transactionGetReceipt": { "header": { }, "receipt": { "status": "UNKNOWN" } } }
12/22/2021 1:24:42 AM  RX:(02)  { "transactionGetReceipt": { "header": { }, "receipt": { "status": "UNKNOWN" } } }
12/22/2021 1:24:42 AM  RX:(03)  { "transactionGetReceipt": { "header": { }, "receipt": { "status": "UNKNOWN" } } }
12/22/2021 1:24:43 AM  RX:(04)  { "transactionGetReceipt": { "header": { }, "receipt": { "status": "UNKNOWN" } } }
12/22/2021 1:24:43 AM  RX:(05)  { "transactionGetReceipt": { "header": { }, "receipt": { "status": "INVALID_TREASURY_ACCOUNT_FOR_TOKEN", "exchangeRate": { "currentRate": { "hbarEquiv": 1, "centEquiv": 12, "expirationTime": { "seconds": "4102444800" } }, "nextRate": { "hbarEquiv": 1, "centEquiv": 15, "expirationTime": { "seconds": "4102444800" } } } } } }

Hedera network

previewnet

Version

Current PREVIEWNET

Operating system

Windows

@bugbytesinc bugbytesinc added the Bug An error that causes the feature to behave differently than what was expected based on design. label Dec 22, 2021
@SimiHunjan SimiHunjan added enhancement and removed Bug An error that causes the feature to behave differently than what was expected based on design. labels Dec 22, 2021
@SimiHunjan
Copy link
Contributor

The alias for all transactions and queries other than crypt transfer, get account balance, and get account info will be supported in a future release.

@SimiHunjan SimiHunjan added this to the Hedera 0.23.0 milestone Jan 13, 2022
@Neeharika-Sompalli
Copy link
Member

Will be resolved by this parent issue for extending alias support for all Transactions and Queries #2691

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants