Open hackfisher opened 4 years ago
Note that the redeem receiver account must not be dead account (have been deposited before)
This is auto-fixed in the redeem test tool. If the receiver has no balances, the script will transfer 999999999999 to it automatically.
Note the receipt proof spec of the smart contract, including the knowledge or prefixed receiver hex address, and validation. (Normal subkey hex address(public key) does not include prefix)
The receipt proof part in the tool is just like a cat in a black-box, users or developers might never reach this instead of they are trying to handwrite transactions, this part is included in the tool.
The integration tests tool nearly auto-fix all errors that would happen
yarn build
and yarn run proof
will just pass all tests without any points for attention unless you have a very very bad network that can not connect to the infura or remote darwinia node.The notes this issue references might like a principle of how these tools work, sounds good and I'll add them on.
[ ] Note that the redeem receiver account must not be dead account (have been deposited before)
[ ] Note the receipt proof spec of the smart contract, including the knowledge or prefixed receiver hex address, and validation. (Normal subkey hex address(public key) does not include prefix)
[ ] Other documents links, such as https://github.com/darwinia-network/darwinia/wiki/Eth-backing-tutorial