Skip to content

Commit

Permalink
* add(client/contractbackend.go): Add methods SetParticipant and SetA…
Browse files Browse the repository at this point in the history
…ccount to initialize the TransactorConfig struct.
  • Loading branch information
iljabvh committed May 2, 2024
1 parent 704f389 commit 39bead0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/contractbackend.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ func (tc *TransactorConfig) SetKeyPair(kp *keypair.Full) {
tc.keyPair = kp
}

func (tc *TransactorConfig) SetParticipant(participant *types.Participant) {
tc.participant = participant
}

func (tc *TransactorConfig) SetAccount(account *wallet.Account) {
tc.account = account
}

func NewTransactor(cfg TransactorConfig) *StellarSigner {
st := &StellarSigner{}
if cfg.keyPair != nil {
Expand Down

0 comments on commit 39bead0

Please sign in to comment.