gn-provider 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ console.log('Connected:', provider.isConnected());
|
|
|
50
50
|
### Using with sCrypt Contracts
|
|
51
51
|
|
|
52
52
|
```typescript
|
|
53
|
-
import { GNProvider } from 'scrypt-ts
|
|
53
|
+
import { GNProvider } from 'scrypt-ts';
|
|
54
54
|
import * as bsv from 'bsv';
|
|
55
55
|
import { MyContract } from './src/contracts/myContract';
|
|
56
56
|
|
|
@@ -69,7 +69,7 @@ async function main() {
|
|
|
69
69
|
instance.connect(provider);
|
|
70
70
|
|
|
71
71
|
// 5. Deploy contract
|
|
72
|
-
const deployTx = await instance.deploy(
|
|
72
|
+
const deployTx = await instance.deploy(100); // Deploy with initial satoshis
|
|
73
73
|
console.log('Contract deployed:', deployTx.id);
|
|
74
74
|
|
|
75
75
|
// 6. Call contract method
|