Browse Source

Refactor Event Signing and Update Test Cases

- Changed the event signing method in App.svelte from `sign` to `signEvent` for clarity and consistency.
- Updated the privileged events test to replace `PrivateDirectMessage` with `DirectMessage`, aligning with the latest event kind definitions.
- Adjusted the bundle.js and bundle.js.map files to reflect the latest build changes and optimizations.
main
mleku 3 months ago
parent
commit
9abcb32030
No known key found for this signature in database
  1. 2
      app/privileged_events_test.go
  2. 2
      app/web/dist/bundle.js
  3. 2
      app/web/dist/bundle.js.map
  4. 2
      app/web/src/App.svelte

2
app/privileged_events_test.go

@ -248,7 +248,7 @@ func TestAllPrivilegedKinds(t *testing.T) { @@ -248,7 +248,7 @@ func TestAllPrivilegedKinds(t *testing.T) {
kind.JWTBinding.K,
kind.ApplicationSpecificData.K,
kind.Seal.K,
kind.PrivateDirectMessage.K,
kind.DirectMessage.K,
}
for _, k := range privilegedKinds {

2
app/web/dist/bundle.js vendored

File diff suppressed because one or more lines are too long

2
app/web/dist/bundle.js.map vendored

File diff suppressed because one or more lines are too long

2
app/web/src/App.svelte

@ -825,7 +825,7 @@ @@ -825,7 +825,7 @@
// Sign the event before publishing
if (userSigner) {
const signedEvent = await userSigner.sign(newEvent);
const signedEvent = await userSigner.signEvent(newEvent);
console.log("Signed event for repost:", signedEvent);
const result = await nostrClient.publish(signedEvent, [

Loading…
Cancel
Save