Skip to content

Commit adf1b0a

Browse files
jordanmackgitbook-bot
authored andcommitted
GITBOOK-550: change request with no subject merged in GitBook
1 parent 83e2eca commit adf1b0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

transactions/storing-data-in-a-cell.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Storing data using Lumos is very similar to what you've already done in previous
8585

8686
```javascript
8787
{
88-
cell_output:
88+
cellOutput:
8989
{
9090
capacity: outputCapacity,
9191
lock: addressToScript(address),
@@ -104,7 +104,7 @@ Looking at the code example in the folder `Storing-Data-in-a-Cell-Example`, we s
104104
const hexString = "0x48656c6c6f204e6572766f7321"; // "Hello Nervos!" as a hex string.
105105
const dataSize = ((hexString.length - 2) / 2); // Calculate the size of hexString as binary.
106106
const outputCapacity1 = intToHex(ckbytesToShannons(61n) + ckbytesToShannons(dataSize)); // 61 CKBytes for the Cell minimum + the size of the data.
107-
const output1 = {cell_output: {capacity: outputCapacity1, lock: addressToScript(address), type: null}, data: hexString};
107+
const output1 = {cellOutput: {capacity: outputCapacity1, lock: addressToScript(address), type: null}, data: hexString};
108108
transaction = transaction.update("outputs", (i)=>i.push(output1));
109109
```
110110

0 commit comments

Comments
 (0)