fix getBlankEvent.

This commit is contained in:
fiatjaf
2021-05-23 14:21:46 -03:00
parent d3d120cd7c
commit dc698a5c90
2 changed files with 4 additions and 4 deletions

View File

@@ -2,13 +2,13 @@ import * as secp256k1 from 'noble-secp256k1'
import {sha256} from './utils' import {sha256} from './utils'
export function getBlankEvent(evt) { export function getBlankEvent() {
return { return {
kind: -1, kind: 255,
pubkey: null, pubkey: null,
content: '', content: '',
tags: [], tags: [],
created_at: Math.round(Date.now() / 1000) created_at: 0
} }
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "nostr-tools", "name": "nostr-tools",
"version": "0.4.5", "version": "0.4.6",
"description": "Tools for making a Nostr client.", "description": "Tools for making a Nostr client.",
"main": "index.js", "main": "index.js",
"repository": { "repository": {