Make code compatible with Ruby 2.7

Not including specs etc.
This commit is contained in:
Râu Cao
2023-03-08 10:28:46 +07:00
committed by Râu Cao
parent 5497930dd5
commit 03bd5203ca
5 changed files with 21 additions and 17 deletions

View File

@@ -148,14 +148,14 @@ module Nostr
#
def to_h
{
ids:,
authors:,
kinds:,
ids: ids,
authors: authors,
kinds: kinds,
'#e': e,
'#p': p,
since:,
since: since,
until: self.until,
limit:
limit: limit
}.compact
end