mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-15 03:18:51 +00:00
fix getBlankEvent.
This commit is contained in:
6
event.js
6
event.js
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user