-
While executing code from a `Smock.Run(context => {...})` call, no breakpoints are being hit. Currently the only known workaround is to add a `Debugger.Break()` call, after which the code can be stepp…
-
We are migrating a hardhat project to use `hardhat-deploy`, as we wanted to also leverage the `Diamond` pattern baked into `hardhat-deploy`.
Consider the following test code:
```ts
import * as …
-
ex: https://github.com/defi-wonderland/smock
-
Hi
I try to use Smock like this
```
Smock.Run(context =>
{
context.Setup(() => DateTime.Now).Returns(DateTime.Now.AddDays(1));
context.Setup(() => DateTime.UtcNow).Returns(DateTime.UtcNow.Ad…
-
Hi!
It looks like after a recent update (I'm running 3.5.2), the names of the MQTT devices, entities and devices that are automatically discovered by tydom2mqtt are using generic names (like `binar…
-
Unfortunately, this code
`Smock.Run(context =>{
context.Setup(() => DateTime.Now).Returns(new DateTime(2000, 1, 1));
Assert.AreEqual(DateTime.Now, new DateTime(2000, 1, 1));});`
throws follow…
-
When both are specified in hardhat.config.js
using version 1.0.4
```
require('@eth-optimism/smock/build/src/plugins/hardhat-storagelayout');
require("hardhat-gas-reporter");
```
It's impos…
-
![91554869855_ pic_hd](https://user-images.githubusercontent.com/543395/55852646-6d60f600-5b90-11e9-89f2-72aa16c4ae4a.jpg)
![smock](https://user-images.githubusercontent.com/543395/55852706-a0a38500-…
xilin updated
5 years ago
-
Let's assume, we expect the next payload to be sent in POST request, that should be caught by smocker:
`{
"tags": ["hello1", "hello2", "hello3"]
}`
If i create the new mock and specify the shown…
-
**Describe the bug**
If you use snapshots and smock, a non-mocked contract in one test can accidentally get the mocked behavior from a previous test.
**Reproduction steps**
Consider this contra…