Skip to content

Instantly share code, notes, and snippets.

@feuGeneA
Created June 15, 2018 12:33
Show Gist options
  • Save feuGeneA/659ef801f838c43de947b87aba5151ca to your computer and use it in GitHub Desktop.
Save feuGeneA/659ef801f838c43de947b87aba5151ca to your computer and use it in GitHub Desktop.
$ yarn tsc
yarn run v1.7.0
$ yarn abi-gen
$ truffle compile
$ abi-gen --abis 'build/contracts/*.json' --out build/types --template contracts/templates/contract.handlebars --partials 'contracts/templates/partials/*.handlebars'
Found 7 partial templates
Found 1 ABI files
Processing: Migrations...
Created: build/types/migrations.ts
$ tsc
build/types/migrations.ts:36:91 - error TS2345: Argument of type 'number | BlockParamLiteral | undefined' is not assignable to parameter of type 'number | BlockParamLiteral | undefined'.
Type 'BlockParamLiteral.Earliest' is not assignable to type 'number | BlockParamLiteral | undefined'.
36 const rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock);
~~~~~~~~~~~~
build/types/migrations.ts:64:91 - error TS2345: Argument of type 'number | BlockParamLiteral | undefined' is not assignable to parameter of type 'number | BlockParamLiteral | undefined'.
Type 'BlockParamLiteral.Earliest' is not assignable to type 'number | BlockParamLiteral | undefined'.
64 const rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock);
~~~~~~~~~~~~
build/types/migrations.ts:235:45 - error TS2551: Property 'awaitTransactionSuccessAsync' does not exist on type 'Web3Wrapper'. Did you mean 'awaitTransactionMinedAsync'?
235 const txReceipt = await web3Wrapper.awaitTransactionSuccessAsync(txHash);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment