Open Keith-CY opened 1 year ago
Design Draft(2-13--2-14): https://www.figma.com/design/6XNoimRDbFTTNm016rbIdU/Magickbase?node-id=40199-56347&t=jSrokM1gUEZPpNxZ-1
Design Draft(2-13--2-14): figma.com/design/6XNoimRDbFTTNm016rbIdU/Magickbase?node-id=40199-56347&t=jSrokM1gUEZPpNxZ-1
Please enter the raw transaction data or drag in the raw transaction json file
Is it allowed for users to upload json file by clicking upload
button? Generally, click to upload
and drag in to upload
appear together. @Danie0918
Design Draft(2-13--2-14): figma.com/design/6XNoimRDbFTTNm016rbIdU/Magickbase?node-id=40199-56347&t=jSrokM1gUEZPpNxZ-1
Please enter the raw transaction data or drag in the raw transaction json file
Is it allowed for users to upload json file by clicking
upload
button? Generally,click to upload
anddrag in to upload
appear together. @Danie0918Yes,
click to upload
is also supported, I'll adjust the text here.
This issue comes from signing a transaction to upgrade a contract.
The transaction to sign is constructed by contract developer or dapp maintainer, and it's usually a raw transaction that follows data structure of https://github.com/nervosnetwork/ckb/tree/develop/rpc#type-transaction
Here is an example raw-tx.json
But transaction to sign by Neuron requires extra information because Neuron may be running offline.
Here is an example tx-to-sign.json
I've used the following script to transform the raw-tx into tx-to-sign
export-tx-to-sign.js.zip
It would be greatly helpful if transform could be done on Neuron Project Page