mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
Fixed false positive test
This commit is contained in:
parent
e2e97eba50
commit
457e86cd93
1 changed files with 2 additions and 2 deletions
|
|
@ -590,8 +590,8 @@ func TestMalformedData4(t *testing.T) {
|
|||
t.Fatalf("Expected `provided data '65536' doesn't match type 'uint8'`, got %v", err)
|
||||
}
|
||||
|
||||
// Set it to something that should work
|
||||
(malformedTypedData.Message["from"]).(map[string]interface{})["test"] = 3
|
||||
(malformedTypedData.Message["from"]).(map[string]interface{})["test"] = big.NewInt(3)
|
||||
(malformedTypedData.Message["to"]).(map[string]interface{})["test"] = big.NewInt(4)
|
||||
|
||||
_, err = malformedTypedData.HashStruct(malformedTypedData.PrimaryType, malformedTypedData.Message)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue