Skip to content

Commit aea0233

Browse files
Tanut LertwarachaiTanut Lertwarachai
authored andcommitted
sequence++
1 parent 9e48afe commit aea0233

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

relayer/chains/soroban/config.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ type SorobanChainProviderConfig struct {
1717
HorizonEndpoint string `mapstructure:"horizon_endpoint" toml:"horizon_endpoint"`
1818
Fee string `mapstructure:"fee" toml:"fee"`
1919
NetworkPassphrase string `mapstructure:"network_passphrase" toml:"network_passphrase"`
20-
ContractAddress string `mapstructure:"contract_address" toml:"contract_address"`
2120
}
2221

2322
// NewChainProvider creates a new Soroban chain provider.

relayer/chains/soroban/provider.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ func (cp *SorobanChainProvider) RelayPacket(ctx context.Context, packet *bandtyp
106106
time.Sleep(2 * time.Second)
107107
continue
108108
}
109+
sequence++
109110

110111
signing, err := chains.SelectSigning(packet)
111112
if err != nil {
@@ -116,7 +117,7 @@ func (cp *SorobanChainProvider) RelayPacket(ctx context.Context, packet *bandtyp
116117

117118
signerPayload := soroban.NewSignerPayload(
118119
freeSigner.GetAddress(),
119-
cp.Config.ContractAddress,
120+
packet.TargetAddress,
120121
cp.Config.Fee,
121122
sequence,
122123
cp.Config.NetworkPassphrase,

0 commit comments

Comments
 (0)