Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
fix[deploy]: ton -> ton-core (#7)
Browse files Browse the repository at this point in the history
`ton` package throws an error
  • Loading branch information
Gajesh2007 authored Nov 30, 2023
1 parent f5150a9 commit c3b4282
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pages/start/deploy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Template project provides a handy way to deploy contracts, but you can do it you
To deploy a smart contract in TON you need to send a message with `init` data attached to it. The easiest way to get an `init` for your contract is using a generated typescript bindings that would help to call an init function.

```typescript
import base64url from "base64url";
import qs from "qs";
import { Address, beginCell, storeStateInit } from "ton";
import { Counter } from "./output/sample_Counter";
import base64url from 'base64url';
import qs from 'qs';
import { Address, beginCell, storeStateInit, contractAddress, toNano } from 'ton-core';
import { Counter } from './output/sample_Counter';

// Forming an init package
let owner = Address.parse("some-address");
Expand Down

0 comments on commit c3b4282

Please sign in to comment.