Generate types from new contract ABI JSON (#1320)
* generate types from registry * cleanup * merge, rearrange * lint * built out * abi v2 creation * throw on unions * linting * version handling * split functions * cleanup * drop v1 support * special types * changes * requested changes * formatTYpe * rv outdated test * rv union test * codeclimate * codeclimate * codeclimate * codeclimate * codeclimate * review * cleanup encodeTypes * fix option sub * TypeDefInfo.Result
This commit is contained in:
@@ -79,7 +79,7 @@ describeE2E({
|
||||
|
||||
return (
|
||||
api.tx.contracts
|
||||
.create(CREATION_FEE, MAX_GAS, codeHash, abi.deploy(randomStart))
|
||||
.create(CREATION_FEE, MAX_GAS, codeHash, abi.constructors[0](randomStart))
|
||||
.signAndSend(keyring.dave, (result: SubmittableResult): void => {
|
||||
// console.error('create', JSON.stringify(result));
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ describeE2E({
|
||||
|
||||
return (
|
||||
api.tx.contracts
|
||||
.create(CREATION_FEE, MAX_GAS, codeHash, abi.deploy(randomStart))
|
||||
.create(CREATION_FEE, MAX_GAS, codeHash, abi.constructors[0](randomStart))
|
||||
.signAndSend(keyring.dave, (result: SubmittableResult): void => {
|
||||
if (result.status.isFinalized) {
|
||||
const record = result.findRecord('contracts', 'Instantiated');
|
||||
|
||||
Reference in New Issue
Block a user