-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Eth]: Fix EIP712 message hashing when fixed byte array is
0x0
(#3522)
- Loading branch information
1 parent
6846db5
commit 72c67be
Showing
4 changed files
with
120 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{ | ||
"types": { | ||
"EIP712Domain": [ | ||
{ | ||
"name": "name", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "version", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "chainId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"name": "verifyingContract", | ||
"type": "address" | ||
}, | ||
{ | ||
"name": "salt", | ||
"type": "bytes32" | ||
} | ||
], | ||
"Trade": [ | ||
{ | ||
"name": "nonce", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"name": "firstParty", | ||
"type": "address" | ||
}, | ||
{ | ||
"name": "askingId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"name": "askingQty", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"name": "offeringId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"name": "offeringQty", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"name": "maxFee", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"name": "secondParty", | ||
"type": "address" | ||
}, | ||
{ | ||
"name": "count", | ||
"type": "uint8" | ||
} | ||
] | ||
}, | ||
"domain": { | ||
"name": "CryptoFights Trading", | ||
"version": "1", | ||
"chainId": 1, | ||
"verifyingContract": "0xdc45529aC0FA3185f79A005e57deF64F600c4e97", | ||
"salt": "0x0" | ||
}, | ||
"primaryType": "Trade", | ||
"message": { | ||
"count": 1, | ||
"offeringQty": 1, | ||
"askingQty": 2, | ||
"nonce": "0xcfe49aa546453df3f2e768a97204a3268cef7c27df53cc2f2d47385cfeaf", | ||
"firstParty": "0xC36edF48e21cf395B206352A1819DE658fD7f988", | ||
"askingId": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"offeringId": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"maxFee": "1000000000000000000", | ||
"secondParty": "0x0000000000000000000000000000000000000000" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters