Skip to content

Commit

Permalink
Use u64 for gas limit
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul committed Aug 1, 2022
1 parent 9eed184 commit 458a63d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apis/gas_limit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ post:
required: [gas_limit]
properties:
gas_limit:
$ref: '../keymanager-oapi.yaml#/components/schemas/Uint256'
$ref: '../keymanager-oapi.yaml#/components/schemas/Uint64'
responses:
"202":
description: successfully updated
Expand Down
4 changes: 2 additions & 2 deletions keymanager-oapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ components:
$ref: './types/fee_recipient.yaml'
GasLimit:
$ref: './types/gas_limit.yaml'
Uint256:
$ref: './types/uint.yaml#/Uint256'
Uint64:
$ref: './types/uint.yaml#/Uint64'
SignerDefinition:
$ref: './types/signer_definition.yaml'
ImportRemoteSignerDefinition:
Expand Down
2 changes: 1 addition & 1 deletion types/gas_limit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ properties:
pubkey:
$ref: './public_key.yaml'
gas_limit:
$ref: './uint.yaml#/Uint256'
$ref: './uint.yaml#/Uint64'
6 changes: 3 additions & 3 deletions types/uint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Uint256:
Uint64:
type: string
pattern: ^0x[0-9a-f]{0,64}$
example: "0x1c9c380"
pattern: ^[1-9][0-9]{0,19}$
example: "30000000"

0 comments on commit 458a63d

Please sign in to comment.