Giter Club home page Giter Club logo

Comments (5)

dr497 avatar dr497 commented on July 17, 2024 1

Glad to know it's solved! Will close the issue, let me know if there is anything else we can help with

from token-vesting.

dr497 avatar dr497 commented on July 17, 2024

Hi @Skelt24 ! It seems like the vesting contract was created with the following destination address 3FLP6KmT2CQfMVRkDycHcbyv18GXQ6GNbd7PVx54bXY1 which is a SOL wallet address instead of a token account address.

The destination address must be a SPL token account address (ideally an associated token account) otherwise the CPI to transfer the tokens will fail https://github.com/Bonfida/token-vesting/blob/master/program/src/processor.rs#L241

from token-vesting.

Skelt24 avatar Skelt24 commented on July 17, 2024

Hi @dr497 ! Thank you for your quick feedback.
Indeed, I missunderstood and I put the pubkey during the creation process for the vesting. I corrected it but I still got the issue.

{ "keys": [ { "pubkey": { "_bn": "06ddf6e1d765a193d9cbe146ceeb79ac1cb485ed5f5b37913a8cf5857eff00a9" }, "isSigner": false, "isWritable": false }, { "pubkey": { "_bn": "06a7d51718c774c928566398691d5eb68b5eb8a39b4b6d5c73555b2100000000" }, "isSigner": false, "isWritable": false }, { "pubkey": { "_bn": "c61767ac8b8d1c968ad0dbadf2d952d49a976d54237cd07744cd05dd0a72e6d6" }, "isSigner": false, "isWritable": true }, { "pubkey": { "_bn": "517be6c708323c14e560d5470e5ff07cdd6e8b3e3979935f7007e2c2a84dedfd" }, "isSigner": false, "isWritable": true }, { "pubkey": { "_bn": "ea740d06993007aefdaf93058fe018fda75b75c2abbc7f2e200b64bc9fbaceab" }, "isSigner": false, "isWritable": true } ], "programId": "DLxB9dSQtA4WJ49hWFhxqiQkD9v6m67Yfk9voxpxrBs4", "data": { "type": "Buffer", "data": [ 2, 81 ] } }

Vesting Account ID : ELGRa7bbrfEAfycpCRXhtcVXVGVvN9wQ9i9Fww1gFg21
Vesting Token Account ID : 6V5bxBbj4erMitFojHfBuuqJzuA1HDpPtjwc1KNUtTvC

from token-vesting.

dr497 avatar dr497 commented on July 17, 2024

Could you skip the preflight when you send the transaction and share the signature of the transaction? This way it will be easier to check what could be going wrong

from token-vesting.

Skelt24 avatar Skelt24 commented on July 17, 2024

Thanks again for your feedback @dr497 . I figured it out. The issue was coming from the seed I send into the instrcution which wasn't correctly enoded into an uin8tArray.

Tx (failed) : XGQEf73QiAp8Ad63zYDA8FR2D36aJJ349Rb34XFVoWXHxnky2gfDjLB2fdkyHGi9cxc1g4mQ247mwwX5g7aCf2o

Thank you very much for your help.

from token-vesting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.