* Add a UI warning when contract data are not enabled in the settings * Update wording "contract data" -> "blind signing" to raise awareness * Bump version 1.9.5 * remove hardcoded path in helper build script * Add blind signature test * Add snapshot-tmp to gitignore * Remove unused snapshots * Increase tests timings * Remove unused snapshots * Fix and rename compound blind deposit test * Update Approve and Transfer tests * Update tests * Cosmetic changes + disable debug flag * Update CHANGELOG.md
37 lines
1.2 KiB
JavaScript
37 lines
1.2 KiB
JavaScript
import "core-js/stable";
|
|
import "regenerator-runtime/runtime";
|
|
import { waitForAppScreen, zemu } from './test.fixture';
|
|
|
|
test('[Nano S] Transfer bsc', zemu("nanos", async (sim, eth) => {
|
|
|
|
const tx = eth.signTransaction(
|
|
"44'/60'/1'/0/0",
|
|
'EB0185012A05F200825208945A321744667052AFFA8386ED49E00EF223CBFFC3876F9C9E7BF6181880388080',
|
|
);
|
|
|
|
await waitForAppScreen(sim);
|
|
await sim.navigateAndCompareSnapshots('.', 'nanos_transfer_bsc', [9, 0]);
|
|
|
|
await expect(tx).resolves.toEqual({
|
|
"r": "f667cc34e9815df4f052fb3463cdbe355fff5c1acf4e919b3539806521a059ad",
|
|
"s": "6b35492b7108d9d9e1cc7aede536ed6b3173197b56dd873cbc3b43e041d6f407",
|
|
"v": "93",
|
|
});
|
|
}));
|
|
|
|
test('[Nano X] Transfer bsc', zemu("nanox", async (sim, eth) => {
|
|
|
|
const tx = eth.signTransaction(
|
|
"44'/60'/1'/0/0",
|
|
'EB0185012A05F200825208945A321744667052AFFA8386ED49E00EF223CBFFC3876F9C9E7BF6181880388080',
|
|
);
|
|
|
|
await waitForAppScreen(sim);
|
|
await sim.navigateAndCompareSnapshots('.', 'nanox_transfer_bsc', [5, 0]);
|
|
|
|
await expect(tx).resolves.toEqual({
|
|
"r": "f667cc34e9815df4f052fb3463cdbe355fff5c1acf4e919b3539806521a059ad",
|
|
"s": "6b35492b7108d9d9e1cc7aede536ed6b3173197b56dd873cbc3b43e041d6f407",
|
|
"v": "93",
|
|
});
|
|
})); |