Skip to content

Commit

Permalink
fix the initialize of solana program after update the program
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Jul 2, 2024
1 parent c7a3b2c commit 94f3bbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions e2e/e2etests/test_solana_deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ func TestSolanaInitializeGateway(r *runner.E2ERunner, args []string) {
type InitializeParams struct {
Discriminator [8]byte
TssAddress [20]byte
ChainId uint64
}
r.Logger.Print("TSS EthAddress: %s", r.TSSAddress)

inst.DataBytes, err = borsh.Serialize(InitializeParams{
Discriminator: [8]byte{175, 175, 109, 31, 13, 152, 155, 237},
TssAddress: r.TSSAddress,
ChainId: 111111,
})
if err != nil {
panic(err)
Expand Down

0 comments on commit 94f3bbe

Please sign in to comment.