-
Notifications
You must be signed in to change notification settings - Fork 690
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Node/Solana: Allow reobservation by transaction ID
- Loading branch information
1 parent
541092c
commit 2e50771
Showing
2 changed files
with
151 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package solana | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/gagliardetto/solana-go" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestVerifyConstants(t *testing.T) { | ||
// If either of these ever change, message publication and reobservation may break. | ||
assert.Equal(t, SolanaAccountLen, solana.PublicKeyLength) | ||
assert.Equal(t, SolanaSignatureLen, len(solana.Signature{})) | ||
} |