Skip to content

Commit bba0bdb

Browse files
authored
Merge pull request #11 from hyperweb-io/anmol/fix-default-export
fix: explicitly export Contract class as default in index.ts
2 parents 2ee2f17 + 0ae35fa commit bba0bdb

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

dist/contracts/bundle2.js

+5-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/contracts/bundle2.js.map

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/contract2/amm.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { getBalance, sendCoins } from '~bank';
33

44
import { store } from './sdk';
5-
import {Msg, StateEntries, State} from './types'
5+
import { Msg, StateEntries, State } from './types'
66

77
const contractStore = store({
88
totalSupply: 0,

src/contract2/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ export * from './amm'
22
export * from './types'
33
export * from './utils'
44
export * from './sdk'
5+
6+
import { Contract } from './amm'
7+
8+
export default Contract; // need to explicitly export Contract to make it the entry point

0 commit comments

Comments
 (0)