Skip to content

Commit f54e923

Browse files
committed
parse 'seq' in PLCOperation if included
1 parent c3e6935 commit f54e923

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/didkit/plc_operation.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ class FormatError < StandardError
1212
include AtHandles
1313
include Services
1414

15-
attr_reader :json, :did, :cid, :created_at, :type, :handles, :services
15+
attr_reader :json, :did, :cid, :seq, :created_at, :type, :handles, :services
1616

1717
def initialize(json)
1818
@json = json
19+
@seq = json['seq']
1920
@did = json['did']
2021
raise FormatError, "Missing DID: #{json}" if @did.nil?
2122
raise FormatError, "Invalid DID: #{@did}" unless @did.is_a?(String) && @did.start_with?('did:')

0 commit comments

Comments
 (0)