We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96b5504 commit 8a8a7f9Copy full SHA for 8a8a7f9
1 file changed
spec/ckb/types/cell_data_spec.rb
@@ -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
13
+end
0 commit comments