Skip to content

Commit

Permalink
chore: Fix contract access for LzApp SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista committed Feb 14, 2024
1 parent a5a77ec commit 2d9914e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ua-devtools-evm/src/lzapp/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class LzApp extends OmniSDK implements ILzApp {
this.logger.debug(`Getting trusted remote for eid ${eid} (${formatEid(eid)})`)

try {
return ignoreZero(await this.contract.contract.getTrustedRemoteAddress(eid))
return ignoreZero(await this.contract.contract.getTrustedRemoteAddress?.(eid))
} catch (error: unknown) {
const parsedError = parseGenericError(error)

Expand Down

0 comments on commit 2d9914e

Please sign in to comment.