-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More tests for the LSP contract #34
base: devel
Are you sure you want to change the base?
Conversation
✔️ Deploy Preview for romantic-shirley-1fb5ce ready! 🔨 Explore the source changes: a0bf555 🔍 Inspect the deploy log: https://app.netlify.com/sites/romantic-shirley-1fb5ce/deploys/60d80f6750ad090007c397f1 😎 Browse the preview: https://deploy-preview-34--romantic-shirley-1fb5ce.netlify.app |
…out OptimisticOracle.
import LinearLongShortPairABI from "~/abis/LinearLongShortPairFinancialProductLibrary.json" | ||
|
||
jest.setTimeout(40000) | ||
expect.extend(waffleJest) | ||
|
||
describe("LSP", function () { | ||
const addresses: Record<string, Address> = { | ||
const addresses = { | ||
WETH: "0xd0a1e359811322d97991e03f863a0c30c2cf029c", | ||
LSPCreator: "0x4C68829DBD07FEbB250B90f5624d4a5C30BBeC2c", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should use the addresses.json
file here. I recently had the problem that the json file contained the outdated LSPCreator address leading to the issue that the redeeming worked in tests but not in the app, which was quite a confusing situation.
} | ||
const contracts: Record<string, Contract> = {} | ||
let namedAccounts: Record<string, Address> | ||
let contracts: Record<keyof typeof addresses, Contract> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately after changing that I still get a bunch of errors due to contract objects being undefined. Were you able to run the tests on your machine ? (If so what is the command you used?)
No description provided.