For my project I created vesting contract. The contract codes and vesting contract codes are same with MATIC token contracts but in my vesting contract there is wrong. https://etherscan.io/address/0xcbfe11b78c2e6cb25c6eda2c6ff46cd4755c8fca#readContract . If you check this link there is owner and token. It is true but in my vesting contract both owner and token are same which is main wallet adress. I entered wrong thing for token. I wrote main adress for _token but it must be TOKEN contract adress. Now can we change this or upgrade this.

  • Maybe you can use the retrieveExcessTokens or addVesting functions to get the tokens out of the contract?
    – Jesbus
    Dec 27 '19 at 16:33
  • How can I withdraw tokens with addVesting? Token information is wrong
    – BROL
    Dec 28 '19 at 17:03
  • I don't think there's a way to get your tokens out. Please post the actual addresses and contract code so we can take a better look
    – Jesbus
    Dec 28 '19 at 17:54
  • etherscan.io/address/… look at from reading. owner and token informations are same and look at original matic vesting contract token is different
    – BROL
    Dec 29 '19 at 13:35
  • There is no way to withdraw the tokens. I recommend re-deploying everything
    – Jesbus
    Dec 29 '19 at 13:42

As you have not made the contracts upgradable at deployment, you can't upgrade it. I would forget about this and deploy a new one. Hopefully you haven't deployed tokens to it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.