Open pvsairam opened 2 months ago
I had the same problem. May I ask if you solved it?
Never mind. I know what causes it.
Not yet I am still facing issues. I was able to create validator but facing issues while approving the validator.
Try using this version to deploy DLP smart contracts. https://github.com/Josephtran102/vana-dlp-smart-contracts
Deploying smart contract and creating validator is already done. I am facing issues while approving the validator.
Is it still ‘Failed to write to contract function: (’execution reverted‘, “no data”)’? Or something new?
root@vmi1633926:~/vana-dlp-chatgpt# ./vanacli dlp approve_validator --validator_address=0x3969Aff9Eb547D7911b924FF06741d6Fd32737eD
Enter wallet name (default): default
Enter password to unlock key:
ERROR:vana: - Failed to write to contract function: OwnableUnauthorizedAccount(0xcb582286c259deb2f62a37bbed16db8ebc7c04f5) -
2024-10-16 13:04:07.466 | ERROR | - Failed to write to contract function: OwnableUnauthorizedAccount(0xcb582286c259deb2f62a37bbed16db8ebc7c04f5) -
2024-10-16 13:04:07.467 | INFO | - Approved validator 0x3969Aff9Eb547D7911b924FF06741d6Fd32737eD -
INFO:vana: - Approved validator 0x3969Aff9Eb547D7911b924FF06741d6Fd32737eD -
OwnableUnauthorisedAccount error. This usually means that the operation you are trying to perform does not have sufficient privileges. 0x01113cFc8a1aca2915FcEd7da9dfFBB08B9bB095 This is your DLP proxy contract address right? It is owned by 0xF9810b951d45D19754435D8e44b7761aA1635D72. So you can't call approveValidator's function via 0xCB582286c259DEB2f62A37bbeD16dB8EbC7c04f5. So you should use 0xF9810b951d45D19754435D8e44b7761aA1635D72 to call approveValidator or transfer the contract ownership to 0xCB582286c259DEB2f62A37bbeD16dB8EbC7c04f5.
I did transferred contract ownership to 0xCB582286c259DEB2f62A37bbeD16dB8EbC7c04f5 yesterday but still unable to Approve validator. What else can i check?
I saw it. But what you transferred yesterday was the ownership of the DLP Token's contract (0xba24510Fa7b99Afa762D5b71B199e7401a4456e4). You should transfer the ownership of DLP's proxy contract (0x01113cFc8a1aca2915FcEd7da9dfFBB08B9bB095) to 0xcb582286c259deb2f62a37bbed16db8ebc7c04f5.
Or directly use 0xF9810b951d45D19754435D8e44b7761aA1635D72 to call 0x01113cFc8a1aca2915FcEd7da9dfFBB08B9bB095's approveValidator method, validatorAddress Fill in 0x3969Aff9Eb547D7911b924FF06741d6Fd32737eD. Please differentiate between the DLPT contract and the DLP contract, the DLPT contract is responsible for the tokens you create while the DLP contract has the function of managing the validator like registerValidator and approveValidator.
Thanks for the help. I have manually approved the validator using explorer - https://moksha.vanascan.io/tx/0x33c299cecf092f334c92572b17addf6c42738570a98188721d2b7af9d7931fae
Hope this is correct!
You're welcome. I'm glad I could help.
I am trying to register a validator using this command
./vanacli dlp register_validator --stake_amount 10
and getting below error:I do have enough $VANA in owner, cold & hot wallets. Could you please look into this issue?