Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
m30m committed Oct 9, 2024
1 parent baf02f3 commit 0850c9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions express_relay/examples/easy_lend/src/monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { hideBin } from "yargs/helpers";
import {
checkAddress,
Client,
OpportunityParams,
OpportunityCreate,
} from "@pythnetwork/express-relay-js";
import type { ContractFunctionReturnType } from "viem";
import {
Expand Down Expand Up @@ -133,7 +133,7 @@ class ProtocolMonitor {
{ token: this.wethContract, amount: targetCallValue },
];
}
const opportunity: OpportunityParams = {
const opportunity: OpportunityCreate = {
chainId: this.chainId,
targetContract: this.vaultContract,
targetCalldata: calldata,
Expand Down
4 changes: 2 additions & 2 deletions express_relay/sdk/js/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ export type OpportunitySvm = {
};

export type OpportunityCreate =
| Omit<OpportunityEvm, "opportunity_id">
| Omit<OpportunitySvm, "opportunity_id">;
| Omit<OpportunityEvm, "opportunityId">
| Omit<OpportunitySvm, "opportunityId">;

export type Opportunity = OpportunityEvm | OpportunitySvm;
/**
Expand Down

0 comments on commit 0850c9d

Please sign in to comment.