Skip to content

fix: token -> pot subject body to outter hoisting #828

Merged
charmful0x merged 6 commits intofix/circular-delegationfrom
fix/token-pot-mint-claiming
Apr 9, 2026
Merged

fix: token -> pot subject body to outter hoisting #828
charmful0x merged 6 commits intofix/circular-delegationfrom
fix/token-pot-mint-claiming

Conversation

@charmful0x
Copy link
Copy Markdown

@charmful0x charmful0x commented Apr 9, 2026

this PR fixes a bug where the token device reads the mint Subject from request's Body, and fwd'd the request as is to the ~pot@1.0 device.

the issue is, the pot device reads the Subject from the request top level instead of body, therefore dev_pot:mint/3 will always default to <<"global">> dripping instead of subject'd mint.

The fix hoists body.subject to the top level request in dev_token before dispatching to dev_pot

also added tests in dev_token_pot_test_vectors

@charmful0x charmful0x changed the title Fix/token pot mint claiming fix: token -> pot subject body to outter hoisting Apr 9, 2026
@charmful0x charmful0x merged commit deac1ea into fix/circular-delegation Apr 9, 2026
@charmful0x charmful0x deleted the fix/token-pot-mint-claiming branch April 9, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant