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

Can not deploy omiga!!!!!!!!!4.05this is ok but today is error #1752

Open
doxulovezh opened this issue Apr 6, 2024 · 12 comments
Open

Can not deploy omiga!!!!!!!!!4.05this is ok but today is error #1752

doxulovezh opened this issue Apr 6, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@doxulovezh
Copy link

Environment

  • Operating system: Linux / Windows
  • Arch: x64
  • Installation: GitHub Release

Describe the bug
Code:https://github.com/omiga-core/ckb-omiga/blob/master/example/secp256k1/1-deploy.ts

inscription id: 0xef876fd2769a448df6f1e0278ff0fe1606cc5a62a8d6c15bc976a8ed16ab862e
{"version":"0x0","cellDeps":[{"outPoint":{"txHash":"0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c","index":"0x0"},"depType":"depGroup"},{"outPoint":{"txHash":"0x1ae1ba691d00525c17b262126576ca5d41b9c6bc09e94038ec26570d0b3f0219","index":"0x0"},"depType":"code"}],"headerDeps":[],"inputs":[{"previousOutput":{"txHash":"0xa685957344a4a69c9569a63240ca59b9d78c7047b821a1c958a5aaf14731beaa","index":"0x1"},"since":"0x0"}],"outputs":[{"capacity":"0x4fb8a1600","lock":{"codeHash":"0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8","hashType":"type","args":"0x10f4f9d4fc9e46a63a158aa26d9b0e8fcdac7047"},"type":{"codeHash":"0x5c33fc69bd72e895a63176147c6ab0bb5758d1c7a32e0914f99f9ec1bed90d41","hashType":"type","args":"0xef876fd2769a448df6f1e0278ff0fe1606cc5a62a8d6c15bc976a8ed16ab862e"}},{"capacity":"0x2245cce2a","lock":{"codeHash":"0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8","hashType":"type","args":"0x10f4f9d4fc9e46a63a158aa26d9b0e8fcdac7047"}}],"outputsData":["0x080d746573742050726f746f636f6c0774657374524742dff01f7f1f37e504421199030cb6d6f6ab69b5ee4e946545d34d4df2de7447c90040075af0750700000000000000000000e8764817000000000000000000000000","0x"],"witnesses":["0x5500000010000000550000005500000041000000219bb9dba74f16af53ddcfc0e9674f2f15b4c4608f0fec1a8b290ecef93f37fe6bcbac8cd3d0ed1b7c1d7e141617547a32eea759584a0106fa07b9503ce3090500","0x"]}
ResponseException [Error]: {"code":-301,"message":"TransactionFailedToResolve: Resolve failed Unknown(OutPoint(0x1ae1ba691d00525c17b262126576ca5d41b9c6bc09e94038ec26570d0b3f021900000000))","data":"Resolve(Unknown(OutPoint(0x1ae1ba691d00525c17b262126576ca5d41b9c6bc09e94038ec26570d0b3f021900000000)))"}
at D:\2024\RGB++\ckb-omiga\node_modules@nervosnetwork\ckb-sdk-rpc\src\method.ts:43:15
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async deploy (D:\2024\RGB++\ckb-omiga\example\secp256k1\1-deploy.ts:56:16) {
code: 204
}

@doxulovezh doxulovezh added the bug Something isn't working label Apr 6, 2024
@doxulovezh
Copy link
Author

this is mainnet ,but testnet id error too

@Keith-CY
Copy link
Collaborator

Keith-CY commented Apr 7, 2024

Hi @doxulovezh

The error message

TransactionFailedToResolve: Resolve failed Unknown(OutPoint(0x1ae1ba691d00525c17b262126576ca5d41b9c6bc09e94038ec26570d0b3f021900000000))"

means that a live cell pointed by 0x1ae1ba691d00525c17b262126576ca5d41b9c6bc09e94038ec26570d0b3f021900000000 cannot be found.

The pointer 0x1ae1ba691d00525c17b262126576ca5d41b9c6bc09e94038ec26570d0b3f0219 00000000 can be treated as

tx hash: 0x1ae1ba691d00525c17b262126576ca5d41b9c6bc09e94038ec26570d0b3f0219
output index: 0x00000000

and its cell can be found at https://explorer.nervos.org/transaction/0x1ae1ba691d00525c17b262126576ca5d41b9c6bc09e94038ec26570d0b3f0219

The cell had been used by tx https://explorer.nervos.org/transaction/0x159a173da44a5bb698c44b6c30b46dd446bc8f3f1930e87aa4debe56d7674f8a on 2024/4/6, so it cannot be found in the live cells and leads to the Resolve failed Unknown OutPoint error

@doxulovezh
Copy link
Author

How did I create a cell of the same type? Please help me, thank you

@doxulovezh
Copy link
Author

image
Some information in the appropriate SDK

@doxulovezh
Copy link
Author

this is mainnet
image

@Keith-CY
Copy link
Collaborator

Keith-CY commented Apr 7, 2024

this is mainnet image

Got it, replace txHash in

image

with 0x159a173da44a5bb698c44b6c30b46dd446bc8f3f1930e87aa4debe56d7674f8a

as mentioned above, the outPoint at

tx hash: 0x1ae1ba691d00525c17b262126576ca5d41b9c6bc09e94038ec26570d0b3f0219
index: 0x0

has been used in https://explorer.nervos.org/transaction/0x1ae1ba691d00525c17b262126576ca5d41b9c6bc09e94038ec26570d0b3f0219

and now it's at

tx hash: 0x159a173da44a5bb698c44b6c30b46dd446bc8f3f1930e87aa4debe56d7674f8a
index: 0x0

@doxulovezh
Copy link
Author

0x159a173da44a5bb698c44b6c30b46dd446bc8f3f1930e87aa4debe56d7674f8a Can I only use my own address? Can I use other addresses
image
image

@doxulovezh
Copy link
Author

this is my address:
ckb1qyqppa8e6n7fu34x8g2c4gndnv8glndvwprs63l794

@Keith-CY
Copy link
Collaborator

Keith-CY commented Apr 7, 2024

0x159a173da44a5bb698c44b6c30b46dd446bc8f3f1930e87aa4debe56d7674f8a Can I only use my own address? Can I use other addresses image image

You have to deploy your own Inscription Info Script if you want to refer to the one under your control.

But I don't understand why TransactionFailedVerify error was thrown because Inscription Info Script won't lead to it.

Could you share your transaction here?

@doxulovezh
Copy link
Author

how to deploy your own Inscription Info Script?

@doxulovezh
Copy link
Author

0x159a173da44a5bb698c44b6c30b46dd446bc8f3f1930e87aa4debe56d7674f8a Can I only use my own address? Can I use other addresses image image

You have to deploy your own Inscription Info Script if you want to refer to the one under your control.

But I don't understand why TransactionFailedVerify error was thrown because Inscription Info Script won't lead to it.

Could you share your transaction here?

Inscription Info Script is not deploy by me

@Keith-CY
Copy link
Collaborator

Keith-CY commented Apr 7, 2024

0x159a173da44a5bb698c44b6c30b46dd446bc8f3f1930e87aa4debe56d7674f8a Can I only use my own address? Can I use other addresses image image

You have to deploy your own Inscription Info Script if you want to refer to the one under your control.
But I don't understand why TransactionFailedVerify error was thrown because Inscription Info Script won't lead to it.
Could you share your transaction here?

Inscription Info Script is not deploy by me

Usually, we will reuse a deployed contract/script, this is a typical difference from EVM.

Contract/script on CKB is a binary in a cell, and can be thought of as a linkable library in our computer system(or a globally installed NPM dependency that can be imported into any project)

But it's fine to deploy your own Inscription Info Script, the standard steps are as follows

  1. Write your own contract/script, and compile it into binary. The source code of Inscription Info Script is required, you may ask for it in Omiga's repo because I didn't find an open-source one.
  2. Store the binary in your live cell by a transaction, just as https://explorer.nervos.org/transaction/0x159a173da44a5bb698c44b6c30b46dd446bc8f3f1930e87aa4debe56d7674f8a did. Check the data field of outputs[0], binary is there
image Deploying a script is simply storing script binary in a cell, specifically, storing the binary in cell's `output_data` field.

You can download the transaction and check the output_data[0] field

image

Ref:
Deploy a script: https://docs.nervos.org/docs/labs/sudtbycapsule/#deploy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants