Commit Graph

7 Commits

Author SHA1 Message Date
Maximilian Krüger d9090d9cde add ignoreExpectedError to test helpers 2018-02-13 10:29:21 +01:00
Maximilian Krüger 88a117a5ba fix test helpers.createMessage: allow setting of homeGasPrice 2018-02-09 09:44:55 +01:00
Maximilian Krüger f2e29764c2 make existing truffle tests run again after 112 2018-02-09 09:41:46 +01:00
Maximilian Krüger 263d846782 add test helper `range` 2018-01-15 10:18:52 +01:00
Maximilian Krüger d96ebc026e truffle tests: move `createMessage` to helpers 2018-01-12 17:26:14 +01:00
Maximilian Krüger 4834e25e97 tests: helpers: add getBalances helper 2018-01-04 18:49:32 +01:00
snd 58a80b4ace fix for #61 and tests for withdraw (#66)
* readme: add section on running truffle tests

* extract `sign` from test/foreign into test/helpers and improve it

* add test helper signatureToVRS

* add test helper bigNumberToHexString

* add test helper bigNumberToPaddedBytes32

* add test "should allow correct withdraw" which fails and exposes #61

* resolve #61 and document it

* fix typo

* fix typo

* use num.toString(16) instead of bigNumberToHexString

https://github.com/paritytech/parity-bridge/pull/66#discussion_r156030874

* add comment

* use explicit transaction hash

* add test "withdraw without funds on HomeBridge should fail"

* add test "should not allow withdraw with message.length != 84"

* add test ""should allow second withdraw with different transactionHash but same recipient and value"

* add test "should not allow second withdraw with same transactionHash but different recipient and value"

* fix typo

* bridge.sol: add note that anyone can call HomeBridge.withdraw

* test that anyone can call withdraw provided they have the message and signatures

* test/home.js: improve wording of test
2017-12-14 17:54:49 +01:00