This repository has been archived by the owner on Jun 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Devon Bear
committed
Oct 6, 2023
1 parent
f319842
commit fb9868e
Showing
4 changed files
with
28 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package signing | ||
|
||
import ( | ||
"google.golang.org/protobuf/proto" | ||
|
||
"cosmossdk.io/x/tx/signing" | ||
) | ||
|
||
// ProvideNoopGetSigners returns a CustomGetSigner that always returns 0x0. | ||
func ProvideNoopGetSigners[T proto.Message]() signing.CustomGetSigner { | ||
var t T | ||
return signing.CustomGetSigner{ | ||
MsgType: proto.MessageName(t), | ||
Fn: func(msg proto.Message) ([][]byte, error) { | ||
// Return the signer in the required format. | ||
return [][]byte{{0x0}}, nil | ||
}, | ||
} | ||
} |
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