Skip to content

Commit 1136e94

Browse files
DanL0shankars99
andauthored
fix solana oft wiring by removing duplicate tx (#1870)
Co-authored-by: Shankar Subramanian <shankar@layerzerolabs.org>
1 parent bfea443 commit 1136e94

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.changeset/flat-snakes-think.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@layerzerolabs/ua-devtools-solana": patch
3+
---
4+
5+
remove duplicate setPeer instruction

packages/ua-devtools-solana/src/oft/sdk.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,6 @@ export class OFT extends OmniSDK implements IOApp {
204204
instructions.push(oft.initOAppNonce({ admin: delegate, oftStore }, eid, normalizedPeer)) // delegate
205205
}
206206

207-
instructions.push(
208-
await this._createSetPeerAddressIx(normalizedPeer, eid) // admin but is this needed? set twice...
209-
)
210-
211207
this.logger.debug(`Setting peer for eid ${eid} (${eidLabel}) to address ${peerAsBytes32}`)
212208
return {
213209
...(await this.createTransaction(this._umiToWeb3Tx(instructions))),

0 commit comments

Comments
 (0)