Skip to content

Commit

Permalink
docs: updated comments of how to use deploy-test-dapp-contracts.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
hui-an-yang committed Dec 14, 2023
1 parent d4a1cc8 commit ae46d2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/deploy-test-dapp-contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { TezosToolkit } from '@taquito/taquito';
import { InMemorySigner } from '@taquito/signer'
import { code, storage } from './data/test-dapp-contract';

const ghostnet = 'https://ghostnet.ecadinfra.com'
const nairobinet = 'https://nairobinet.ecadinfra.com/'
// update the targeted rpc url before running
const rpcUrl = 'https://nairobinet.ecadinfra.com/'

originate(nairobinet)
originate(rpcUrl)

async function originate(url: string) {
const Tezos = new TezosToolkit(url)
// alice address tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb
// if it's a new protocol might need to fund alice's address tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb
Tezos.setSignerProvider(new InMemorySigner('edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq'))


Expand Down

0 comments on commit ae46d2f

Please sign in to comment.