forked from snapshot-labs/snapshot-v1
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent invalid transactions being submitted with osnap plugin (s…
…napshot-labs#4552) * disable publish if osnap tx invalid * set state upstream even if invalid, better input logic * don't allow empty transaction array * clear form when changing type * clone safe on mount * better validation, state setting for nft trasnfer & token transfer * keep validation logic in components, emit isValid flag * check contract interaction params * enforce positive value for sending tokens * remove top level valid flag * handle value validation * set invalid method params for validation * validate raw tx inputs * disable publish if osnap tx invalid * set state upstream even if invalid, better input logic * don't allow empty transaction array * clear form when changing type * clone safe on mount * better validation, state setting for nft trasnfer & token transfer * keep validation logic in components, emit isValid flag * check contract interaction params * enforce positive value for sending tokens * remove top level valid flag * handle value validation * set invalid method params for validation * validate raw tx inputs * remove error message for decimal values * pad bytes32 * clean up --------- Co-authored-by: Gerhard Steenkamp <gerhard@umaproject.org>
- Loading branch information
1 parent
1226306
commit 0244fd4
Showing
16 changed files
with
314 additions
and
120 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
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
Oops, something went wrong.