Page MenuHomePhabricator

[Cashtab] Use user modal confirmation settings for minting tokens
ClosedPublic

Authored by bytesofman on Sat, Dec 21, 23:52.

Details

Summary

T3709

Currently there is no confirmation on mint txs.

imo Mint is not the kind of action that always needs a confirmation (like burn). So, defer to user settings on this.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emack added a subscriber: emack.
emack added inline comments.
cashtab/src/components/Etokens/__tests__/Token.test.js
967 ↗(On Diff #51711)

how do you simulate this environment var in int tests?

This revision is now accepted and ready to land.Sun, Dec 22, 09:45
bytesofman added inline comments.
cashtab/src/components/Etokens/__tests__/Token.test.js
967 ↗(On Diff #51711)

you can see in the earlier steps of this test that we render the app rather than only the token route -- navigate to settings, enable this setting, and then navigate to the token page.