captcha icon indicating copy to clipboard operation
captcha copied to clipboard

change account prefixes in contract testing

Open goastler opened this issue 2 years ago • 2 comments

goastler avatar Jul 13 '23 09:07 goastler

[0x0; 32] and [0x1; 32] are used by default in the testing environment, which can leads to issues by duplication of accounts or calling from the default [0x1; 32] when that accounts has been used as a role, e.g. provider, leading to pass or fail of tests when they shouldn't.

We either need to add a constant at the end of our test accounts or change the prefixes. I think the former would be better, otherwise we're always open to a clash in the future if someone forgets about this issue

goastler avatar Jul 13 '23 09:07 goastler

pretty sure this is done, but I need to check

goastler avatar Apr 24 '24 14:04 goastler

Refinement since I can't tell if it's done or not. Screenshot to explain

Image

HughParry avatar Jun 14 '24 13:06 HughParry

@goastler to add context about why needed

HughParry avatar Jun 17 '24 08:06 HughParry

basically, we need alice/bob/etc to be the same in js as in rust. It's not, and we could do with having some way of deriving accounts on both rust and js which produces the same account in both ecosystems in a determiniistic way

goastler avatar Jun 17 '24 08:06 goastler