Skip to content

Commit

Permalink
rename pdaID as pda to be a more correct Solana terminology
Browse files Browse the repository at this point in the history
  • Loading branch information
ws4charlie committed Jul 18, 2024
1 parent 966b56b commit 9df010d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zetaclient/chains/solana/observer/inbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func (ob *Observer) GetSignerDeposit(tx *solana.Transaction, inst *solana.Compil
accKey := tx.Message.AccountKeys[accIndexInt]

switch accKey {
case ob.pdaID:
case ob.pda:
pdaIndex = accIndexInt
case ob.gatewayID:
gatewayIndex = accIndexInt
Expand Down
4 changes: 2 additions & 2 deletions zetaclient/chains/solana/observer/observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Observer struct {
gatewayID solana.PublicKey

// pda is the program derived address of the gateway program
pdaID solana.PublicKey
pda solana.PublicKey
}

// NewObserver returns a new Solana chain observer
Expand Down Expand Up @@ -66,7 +66,7 @@ func NewObserver(

// compute gateway PDA
seed := []byte(solanacontract.PDASeed)
ob.pdaID, _, err = solana.FindProgramAddress([][]byte{seed}, ob.gatewayID)
ob.pda, _, err = solana.FindProgramAddress([][]byte{seed}, ob.gatewayID)
if err != nil {
return nil, err

Check warning on line 71 in zetaclient/chains/solana/observer/observer.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/chains/solana/observer/observer.go#L71

Added line #L71 was not covered by tests
}
Expand Down

0 comments on commit 9df010d

Please sign in to comment.