Skip to content

Commit a583d03

Browse files
pelleclaude
andcommitted
Fix invalid 'for' attributes in agent test vectors
The 'for' field in agent objects must contain DIDs that reference actual parties/agents, not string literals like 'merchant' or 'originator'. Per TAIP-5: 'for' field should contain 'a DID or an array of DIDs of another Agent or Party that this agent acts on behalf of'. Fixed test vectors: - payment-request/valid-direct-asset.json: 'merchant' → 'did:web:merchant.vasp' - payment-request/valid-fiat-amount.json: 'merchant' → 'did:web:merchant.vasp' - payment-request/invalid-missing-amount.json: 'merchant' → 'did:web:merchant.vasp' - transfer/minimal.json: 'originator' → 'did:web:originator.vasp' 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 835eac8 commit a583d03

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test-vectors/payment-request/invalid-missing-amount.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{
2626
"@id": "did:web:merchant.vasp",
2727
"role": "Merchant",
28-
"for": "merchant"
28+
"for": "did:web:merchant.vasp"
2929
}
3030
]
3131
}

test-vectors/payment-request/valid-direct-asset.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{
2626
"@id": "did:web:merchant.vasp",
2727
"role": "Merchant",
28-
"for": "merchant"
28+
"for": "did:web:merchant.vasp"
2929
}
3030
]
3131
}

test-vectors/payment-request/valid-fiat-amount.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
{
3232
"@id": "did:web:merchant.vasp",
3333
"role": "Merchant",
34-
"for": "merchant",
34+
"for": "did:web:merchant.vasp",
3535
"policies": [
3636
{
3737
"@type": "RequirePresentation",

test-vectors/transfer/minimal.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
{
2323
"@id": "did:web:originator.vasp",
2424
"role": "Originator",
25-
"for": "originator"
25+
"for": "did:web:originator.vasp"
2626
}
2727
]
2828
}

0 commit comments

Comments
 (0)