Skip to content

Commit 8a8a7f9

Browse files
committed
test: cell data
1 parent 96b5504 commit 8a8a7f9

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

spec/ckb/types/cell_data_spec.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
RSpec.describe CKB::Types::CellData do
2+
let(:cell_data_h) do
3+
{
4+
content: { tx_hash: "0x02000000cda436b589c46398456a05f2f1b3fc4b3ac42d2e78bc077ee237747cf6a9627e03000000cda436b589c46398456a05f2f1b3fc4b3ac42d2e78bc077ee237747cf6a9627e01000000", index: "0" },
5+
hash: "0x9992e7e858b12d557f80edcc661fc1d4b86a98d077c0f0b6655eca38df4e2458"
6+
}
7+
end
8+
9+
it "from_h" do
10+
cell_data = CKB::Types::CellData.from_h(cell_data_h)
11+
expect(cell_data).to be_a(CKB::Types::CellData)
12+
end
13+
end

0 commit comments

Comments
 (0)