Skip to content
Prev Previous commit
Next Next commit
Regenerate contracts types
  • Loading branch information
jasl committed Nov 11, 2022
commit 4b0bcb7c4d558b0c0bfbd5bfa5335ff3956fde7a
4 changes: 2 additions & 2 deletions packages/types/src/interfaces/contracts/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const runtime: DefinitionsCall = {
},
{
name: 'gasLimit',
type: 'u64'
type: 'Weight'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to Option<Weight>

},
{
name: 'storageDepositLimit',
Expand Down Expand Up @@ -64,7 +64,7 @@ export const runtime: DefinitionsCall = {
},
{
name: 'gasLimit',
type: 'u64'
type: 'Weight'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to Option<Weight>

},
{
name: 'storageDepositLimit',
Expand Down
10 changes: 5 additions & 5 deletions packages/types/src/interfaces/contracts/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ export interface ContractCallRequest extends Struct {
readonly origin: AccountId;
readonly dest: AccountId;
readonly value: Balance;
readonly gasLimit: Gas;
readonly gasLimit: Weight;
readonly storageDepositLimit: Option<Balance>;
readonly inputData: Bytes;
}

/** @name ContractExecResult */
export interface ContractExecResult extends Struct {
readonly gasConsumed: Gas;
readonly gasRequired: Gas;
readonly gasConsumed: Weight;
readonly gasRequired: Weight;
readonly storageDeposit: StorageDeposit;
readonly debugMessage: Text;
readonly result: ContractExecResultResult;
Expand Down Expand Up @@ -139,8 +139,8 @@ export interface ContractInfo extends Enum {

/** @name ContractInstantiateResult */
export interface ContractInstantiateResult extends Struct {
readonly gasConsumed: Gas;
readonly gasRequired: Gas;
readonly gasConsumed: Weight;
readonly gasRequired: Weight;
readonly storageDeposit: StorageDeposit;
readonly debugMessage: Text;
readonly result: InstantiateReturnValue;
Expand Down