Basically any method in src/util
should be unit tested via Jest.
- Recover an account on Kovan with the phrase
this is sparta
- Go to
MyCrypto
and generate a transaction - Scan transaction QR
- Scan the signature back to
MyCrypto
- Make sure the transaction actually succeeds
- Go to
Sign a Message
tab inMyCrypto
now - Type in a message, any message
- Repeat steps 3, 4
- Expect the message is readable just as you typed it in
- Scan the signature back to
MyCrypto
- Verify the message
There is currently no testnet, so we just check that the signature is formatted correctly.
- Clone https://github.com/polkadot-js/apps
- Disable the balance validation in apps, so you can construct an extrinsic with 0 balance
- Choose Kusama network in Settings Tab
- Do any extrinsic of your choice
- Scan QR
- Go to Settings, and change to Substrate (either the hosted Flaming Fir or a custom chain)
- Run the same transaction
- Expect the message: "Vault does not currently support a chain with the genesis hash: 0x....."
- Go to
constants.js
- Add the appropriate genesis hash
- Uncomment the checks for
isSubstrateDev
inPayloadDetailsCard.js
- Repeat steps 4, 5
- Expect the method decoding to be raw bytes.