Skip to content

Commit

Permalink
fix json imports in docs (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-zwets authored Nov 19, 2024
1 parent a7c4f65 commit 202b649
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/docs/basics/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Now to initialise a contract we will import the `ElectrumNetworkProvider` and `C

```javascript
import { ElectrumNetworkProvider, Contract } from 'cashscript';
import artifact from './TransferWithTimeout.json';
import artifact from './TransferWithTimeout.json' with { type: 'json' };
import { alicePub, bobPub } from './keys.js';

// Initialise a network provider for network operations
Expand Down
2 changes: 1 addition & 1 deletion website/docs/sdk/instantiation.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { Contract, ElectrumNetworkProvider } from 'cashscript';
import { compileFile } from 'cashc';

// Import the artifact JSON
import P2PKH from './p2pkh.json';
import P2PKH from './p2pkh.json' with { type: 'json' };

// Or compile a contract file
const P2PKH = compileFile(new URL('p2pkh.cash', import.meta.url));
Expand Down

0 comments on commit 202b649

Please sign in to comment.