Skip to content

Update entropy tutorial to use IEntropyV2 interface #764

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pages/entropy/create-your-first-entropy-app.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ contract CoinFlip is IEntropyConsumer {
event FlipRequested(uint64 sequenceNumber);
event FlipResult(uint64 sequenceNumber, bool isHeads);

IEntropy entropy;
IEntropyV2 entropy;

constructor(address _entropy) {
entropy = IEntropy(_entropy);
entropy = IEntropyV2(_entropy);
}

// This method is required by the IEntropyConsumer interface
Expand All @@ -61,7 +61,7 @@ contract CoinFlip is IEntropyConsumer {

```

The code implements a`CoinFlip` contract which inherits the `IEntropyConsumer` interface. We have also defined some events, properties and a constructor to instantiate the contract. One of the properties is of type `IEntropy` which is an interface imported from the Entropy SDK.
The code implements a`CoinFlip` contract which inherits the `IEntropyConsumer` interface. We have also defined some events, properties and a constructor to instantiate the contract. One of the properties is of type `IEntropyV2` which is an interface imported from the Entropy SDK.

### Request a coin flip

Expand Down
Loading