Comments (5)
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.
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.
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.
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.
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)
- Tess
- Token Vesting Ui Issue HOT 6
- Token Lock has disappeared from the UI HOT 2
- My question remains unanswered: Why was Lock option removed from the UI? HOT 4
- Please add back "Lock" to Bonafida UI - Rust CLI does not work HOT 4
- Rust CLI Help HOT 4
- rfc: linear vesting cli
- Error processing Instruction 0: custom program error: 0x0 HOT 11
- using deploy dao to ensure lock safety HOT 1
- error compiling CLI - no method named `get_latest_blockhash` found for struct `RpcClient` in the current scope HOT 2
- yarn dev rolls back all file changes
- failed to send transaction: Transaction simulation failed... HOT 6
- cargo build-bpf not work
- Transaction simulation failed: Attempt to load a program that does not exist HOT 2
- Create linear vesting error with cli
- Is there an api to undo Create linear vesting? HOT 4
- Please how to get vesting info using getProgramAccounts HOT 4
- Preflight error [account Address already in use] [mainnet only] HOT 12
- Token 2022 Program HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from token-vesting.