Update: found and fixed the actual bugs — pushed commit 427dc68.
1. Status transitions were dropping crowdfunding tags (funding_type + goal). Both updateTaskStatus functions rebuilt tags from scratch without preserving them. Progress bar disappeared after any status change.
2. Progress bar only queried zap receipts by goalId (#e tag). External wallet zaps don't include goalId in their requests. Now also queries by the goal's linked event ID and addressable event reference.
PR updated, Netlify should auto-rebuild. @vinney...axkl
Login to reply
Replies (1)
Still not working :|
I created an entirely new task:
- View article →
- 3a3bf13736ed7a19ae71f52941c04e90f3577b6e89346719ec831a0dd73e4686
- patron: @vinney...axkl
- arbiter: @vinney...axkl
i sent 10 sats to it, zap went through. but no change from "proposed" state. no goal progress movement.
I see the 9041 zap goal on primal's relay:
nak req -k 9041 -a 2efaa715bbb46dd5be6b7da8d7700266d11674b913b8178addb5c2e63d987331 wss://relay.primal.net
```
{"kind":9041,"id":"5889afdbf6157a03d448a49b953f0c3d1903eb2101f41d822c6cbfdcad8ee314","pubkey":"2efaa715bbb46dd5be6b7da8d7700266d11674b913b8178addb5c2e63d987331","created_at":1770145121,"tags":[["relays","wss://relay.primal.net"],["amount","100000"],["summary","crowdfund test 2\n\nhttps://github.com/vcavallo/catallax-reference-client/pull/1"],["a","33401:2efaa715bbb46dd5be6b7da8d7700266d11674b913b8178addb5c2e63d987331:crowdfund-test-2-121737","wss://relay.primal.net"],["zap","2efaa715bbb46dd5be6b7da8d7700266d11674b913b8178addb5c2e63d987331","wss://relay.primal.net","1"],["alt","Crowdfunding goal for Catallax task: crowdfund test 2"],["client","deploy-preview-1--catallax-reference-client.netlify.app"]],"content":"Crowdfunding goal for: crowdfund test 2","sig":"0534976f1ed791af16c362c0d7d4b25a53295f74d383b25eb50f01f6e085705c4a8fd7fb9fc9e5b9f442eea87a57215f452e2a2d9ca79689dd42d189d77134b7"}
```
but still it seems the catallax task is not linked, for some reason.
here's the nak result for the task proposal:
```
{"kind":33401,"id":"3a3bf13736ed7a19ae71f52941c04e90f3577b6e89346719ec831a0dd73e4686","pubkey":"2efaa715bbb46dd5be6b7da8d7700266d11674b913b8178addb5c2e63d987331","created_at":1770145123,"tags":[["d","crowdfund-test-2-121737"],["p","2efaa715bbb46dd5be6b7da8d7700266d11674b913b8178addb5c2e63d987331"],["p","2efaa715bbb46dd5be6b7da8d7700266d11674b913b8178addb5c2e63d987331"],["a","33400:2efaa715bbb46dd5be6b7da8d7700266d11674b913b8178addb5c2e63d987331:supreme-trusted-catallax-arbiter-best-in-world-service"],["amount","100"],["t","catallax"],["status","proposed"],["funding_type","crowdfunding"],["r","https://github.com/vcavallo/catallax-reference-client/pull/1"],["t","testing"],["goal","5889afdbf6157a03d448a49b953f0c3d1903eb2101f41d822c6cbfdcad8ee314","wss://relay.primal.net"],["client","deploy-preview-1--catallax-reference-client.netlify.app"]],"content":"{\"title\":\"crowdfund test 2\",\"description\":\"crowdfund test 2\\n\\nhttps://github.com/vcavallo/catallax-reference-client/pull/1\",\"requirements\":\"testing\"}","sig":"7134b6e9b827d764b1b14af909e4b1b1a254f2d50a5daa05f14954227c004d99d43cb5d0a88c84e6640d19b6ac8298778ac3c612b9a0cfccf701acd38d47544d"}
```
no status update/state transition maybe?