Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client-side exception in personal mode #150

Closed
n8maninger opened this issue Jul 9, 2024 · 0 comments · Fixed by SiaFoundation/web#662 or #153
Closed

Client-side exception in personal mode #150

n8maninger opened this issue Jul 9, 2024 · 0 comments · Fixed by SiaFoundation/web#662 or #153
Assignees
Labels
bug Something isn't working

Comments

@n8maninger
Copy link
Member

n8maninger commented Jul 9, 2024

Getting the error A.data.spentSiacoinElements.reduce when loading a wallet with received events in "personal" index mode. Since the input f882471974c48c6410b2f63e9be072b4bd710b18712e5de35c3b646044257292 is not relevant to one of my wallet addresses, spentSiacoinElements is null.

This transaction should show +500 SC (500 SC inflow - 0 SC outflow)

[
	{
		"id": "h:85e850176d6b7d775a69e2cb523ceebbebfab3467d8752e79e3757d08d64aa84",
		"index": {
			"height": 78257,
			"id": "bid:0000000000000000000000000000000000000000000000000000000000000000"
		},
		"timestamp": "2024-07-09T15:46:59.800284-07:00",
		"maturityHeight": 78258,
		"type": "v1Transaction",
		"data": {
			"transaction": {
				"siacoinInputs": [
					{
						"parentID": "scoid:f882471974c48c6410b2f63e9be072b4bd710b18712e5de35c3b646044257292",
						"unlockConditions": {
							"timelock": 0,
							"publicKeys": [
								"ed25519:afe8e21257d6e2eb2ee72acb0b3e092e68c47a7ecacd8059f832462e45fe4b48"
							],
							"signaturesRequired": 1
						}
					}
				],
				"siacoinOutputs": [
					{
						"value": "500000000000000000000000000",
						"address": "addr:944d162e3bdd7d3080b56ca29db937c9be085f5a97d56e90e8ef2afca00aba439614be5e4843"
					},
					{
						"value": "999847356000000000000000000000000",
						"address": "addr:241352c83da002e61f57e96b14f3a5f8b5de22156ce83b753ea495e64f1affebae88736b2347"
					}
				],
				"minerFees": [
					"1000000000000000000000000"
				],
				"signatures": [
					{
						"parentID": "h:f882471974c48c6410b2f63e9be072b4bd710b18712e5de35c3b646044257292",
						"publicKeyIndex": 0,
						"coveredFields": {
							"wholeTransaction": true
						},
						"signature": "WSvcr6bPVmZs9W6jSajPslsS/PKzhski1pkeNYP3WRml6vKjcGCZtPK6sKwJTiR68wAs4+BrX8D6I11TaybSAg=="
					}
				]
			},
			"spentSiacoinElements": null,
			"spentSiafundElements": null
		},
		"relevant": [
			"addr:944d162e3bdd7d3080b56ca29db937c9be085f5a97d56e90e8ef2afca00aba439614be5e4843"
		]
	}
]
@n8maninger n8maninger added the bug Something isn't working label Jul 9, 2024
@n8maninger n8maninger added this to Sia Jul 9, 2024
@github-project-automation github-project-automation bot moved this to Triage in Sia Jul 9, 2024
@n8maninger n8maninger moved this from Triage to Backlog in Sia Jul 9, 2024
@ChrisSchinnerl ChrisSchinnerl moved this from Backlog to Todo in Sia Jul 10, 2024
@alexfreska alexfreska moved this from Todo to In Review in Sia Jul 10, 2024
@github-project-automation github-project-automation bot moved this from In Review to Done in Sia Jul 12, 2024
@github-actions github-actions bot mentioned this issue Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants