diff --git a/lib/ckb/types/types.rb b/lib/ckb/types/types.rb index 2e02fb8e..d9aa211f 100644 --- a/lib/ckb/types/types.rb +++ b/lib/ckb/types/types.rb @@ -12,7 +12,6 @@ require_relative "transaction_with_status" require_relative "transaction" require_relative "tx_status" -require_relative "witness" require_relative "epoch" require_relative "alert_message" require_relative "chain_info" diff --git a/lib/ckb/types/witness.rb b/lib/ckb/types/witness.rb deleted file mode 100644 index 8b06e752..00000000 --- a/lib/ckb/types/witness.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -module CKB - module Types - class Witness - attr_accessor :data - - # @param data [String[]] 0x... - def initialize(data:) - @data = data - end - - def to_h - { - data: @data - } - end - - def self.from_h(hash) - return if hash.nil? - - new( - data: hash[:data] - ) - end - end - end -end