Skip to content

Commit

Permalink
fix(api-kit): callDataGasLimit -> callGasLimit (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
yagopv authored May 30, 2024
1 parent c9c9187 commit d7da593
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/api-kit/src/SafeApiKit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ class SafeApiKit {
nonce: Number(userOperation.nonce),
initCode: isEmptyData(userOperation.initCode) ? null : userOperation.initCode,
callData: userOperation.callData,
callDataGasLimit: userOperation.callGasLimit.toString(),
callGasLimit: userOperation.callGasLimit.toString(),
verificationGasLimit: userOperation.verificationGasLimit.toString(),
preVerificationGas: userOperation.preVerificationGas.toString(),
maxFeePerGas: userOperation.maxFeePerGas.toString(),
Expand Down
2 changes: 1 addition & 1 deletion packages/api-kit/src/types/safeTransactionServiceTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export type UserOperationResponse = {
readonly nonce: number
readonly initCode: null | string
readonly callData: null | string
readonly callDataGasLimit: number
readonly callGasLimit: number
readonly verificationGasLimit: number
readonly preVerificationGas: number
readonly maxFeePerGas: number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('getSafeOperationsByAddress', () => {
chai.expect(safeOperation.userOperation).to.have.property('nonce')
chai.expect(safeOperation.userOperation).to.have.property('initCode')
chai.expect(safeOperation.userOperation).to.have.property('callData')
chai.expect(safeOperation.userOperation).to.have.property('callDataGasLimit')
chai.expect(safeOperation.userOperation).to.have.property('callGasLimit')
chai.expect(safeOperation.userOperation).to.have.property('verificationGasLimit')
chai.expect(safeOperation.userOperation).to.have.property('preVerificationGas')
chai.expect(safeOperation.userOperation).to.have.property('maxFeePerGas')
Expand Down
2 changes: 1 addition & 1 deletion packages/api-kit/tests/endpoint/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ describe('Endpoint tests', () => {
nonce: Number(userOperation.nonce),
initCode: userOperation.initCode,
callData: userOperation.callData,
callDataGasLimit: userOperation.callGasLimit.toString(),
callGasLimit: userOperation.callGasLimit.toString(),
verificationGasLimit: userOperation.verificationGasLimit.toString(),
preVerificationGas: userOperation.preVerificationGas.toString(),
maxFeePerGas: userOperation.maxFeePerGas.toString(),
Expand Down

0 comments on commit d7da593

Please sign in to comment.