Skip to content
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

Update api-wasm.md #5

Open
wants to merge 1 commit into
base: develop
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
8 changes: 3 additions & 5 deletions docs/api-wasm.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,10 @@ use incubed as Web3Provider in web3js
```js
/// use incubed as Web3Provider in web3js

// import in3-Module
import { IN3 } from 'in3-wasm'
const in3wasm = require('in3-wasm');
const Web3 = require('web3')

const in3 = new IN3({
const in3 = new in3wasm.IN3({
proof: 'standard',
signatureCount: 1,
requestCount: 1,
Expand All @@ -179,8 +178,7 @@ const web3 = new Web3(in3.createWeb3Provider());
const block = await web3.eth.getBlock('latest')
console.log("Block : ", block)

})().catch(console.error);
```
})().catch(console.error);```

### in3_in_browser

Expand Down