-
Notifications
You must be signed in to change notification settings - Fork 563
Migrate updated EIP-712 algorithm from Evmos #1746
Conversation
domain := apitypes.TypedDataDomain{ | ||
Name: "Cosmos Web3", | ||
Version: "1.0.0", | ||
ChainId: math.NewHexOrDecimal256(int64(chainID)), |
Check failure
Code scanning / gosec
Potential integer overflow by integer type conversion
domain := apitypes.TypedDataDomain{ | ||
Name: "Cosmos Web3", | ||
Version: "1.0.0", | ||
ChainId: math.NewHexOrDecimal256(int64(chainID)), // #nosec G701 |
Check failure
Code scanning / gosec
Potential integer overflow by integer type conversion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the ignore not working?
return | ||
} | ||
|
||
*err = fmt.Errorf("%v", r) |
Check warning
Code scanning / gosec
Returned error is not propagated up the stack.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1746 +/- ##
==========================================
+ Coverage 68.05% 68.89% +0.84%
==========================================
Files 113 117 +4
Lines 10263 10681 +418
==========================================
+ Hits 6984 7359 +375
- Misses 2869 2900 +31
- Partials 410 422 +12
|
"encoding/json" | ||
"fmt" | ||
"math/big" | ||
"reflect" // #nosec G702 for sensitive import |
Check notice
Code scanning / CodeQL
Sensitive package import
for k := range jsonMap { | ||
keys[i] = k | ||
i++ | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Integration tests are failing
domain := apitypes.TypedDataDomain{ | ||
Name: "Cosmos Web3", | ||
Version: "1.0.0", | ||
ChainId: math.NewHexOrDecimal256(int64(chainID)), // #nosec G701 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the ignore not working?
Closes: #XXX
Description
Migrate from evmos/evmos#1390.
For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)