Skip to content

Commit

Permalink
chore: remove unnecessary type casts
Browse files Browse the repository at this point in the history
  • Loading branch information
cristovaoth committed Jan 8, 2025
1 parent d98d7d5 commit f30a9db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/encode/execTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function encodeExecTransaction({
args: [
safeTransaction.to,
BigInt(safeTransaction.value),
safeTransaction.data as Hex,
safeTransaction.data,
safeTransaction.operation,
BigInt(safeTransaction.safeTxGas),
BigInt(safeTransaction.baseGas),
Expand Down
8 changes: 4 additions & 4 deletions src/encode/execTransactionWithRole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ export default function encodeExecTransactionWithRole({
abi: ROLES_V1_ABI,
functionName: 'execTransactionWithRole',
args: [
transaction.to as `0x${string}`,
transaction.to,
BigInt(transaction.value),
transaction.data as `0x${string}`,
transaction.data,
transaction.operation || 0,
Number(BigInt(role)),
true,
Expand All @@ -97,9 +97,9 @@ export default function encodeExecTransactionWithRole({
abi: ROLES_V2_ABI,
functionName: 'execTransactionWithRole',
args: [
transaction.to as `0x${string}`,
transaction.to,
BigInt(transaction.value),
transaction.data as `0x${string}`,
transaction.data,
transaction.operation || 0,
role,
true,
Expand Down

0 comments on commit f30a9db

Please sign in to comment.