Skip to content

Commit

Permalink
Add test example for token swap
Browse files Browse the repository at this point in the history
  • Loading branch information
sveitser committed Aug 15, 2018
1 parent 4168164 commit 8d29de3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/SpritesRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface PreimageManager {
contract SpritesRegistry {

// Blocks for grace period
uint constant DELTA = 2;
uint constant DELTA = 10;

struct Player {
address addr;
Expand Down
2 changes: 1 addition & 1 deletion src/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

GAS = 4_000_000
LOTS = 10 ** 18
DELTA = 2 # needs to match contract DELTA
DELTA = 10 # needs to match contract DELTA
ZERO_PREIMAGE_HASH = bytes(32)
ZERO_ADDRESS = "0x0000000000000000000000000000000000000000"
COMMANDS = ["open", "complete", "cancel"]
Expand Down

0 comments on commit 8d29de3

Please sign in to comment.