Skip to content

Commit

Permalink
Merge pull request #1 from Fbartoli/main
Browse files Browse the repository at this point in the history
Unused files and env var
  • Loading branch information
Fbartoli authored Oct 31, 2024
2 parents 7b85a77 + 775b9a9 commit 0fa6b2d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 403 deletions.
301 changes: 0 additions & 301 deletions abi/ScheduleTransfersModule.json

This file was deleted.

2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function RootLayout({
<body className={inter.className}>
<DynamicContextProvider
settings={{
environmentId: '336e4f47-b1d1-44f3-bea0-129795426bfd',
environmentId: process.env.NEXT_PUBLIC_DYNAMIC_ID,
walletConnectors: [EthereumWalletConnectors],
social: { strategy: 'popup' },
shadowDOMEnabled: false,
Expand Down
19 changes: 0 additions & 19 deletions lib/permissionless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,23 +79,4 @@ export const getSmartAccountClient = async (signer: any, nonceKey?: bigint) => {


return {safe: smartAccountClient as unknown as SafeSmartAccountClient, nonce}
}

export function encodeMultiSendData(txs: MetaTransactionData[]): string {
return `0x${txs.map((tx) => encodeMetaTransaction(tx)).join('')}`
}

function encodeMetaTransaction(tx: MetaTransactionData): string {
const data = toBytes(tx.data)
const encoded = encodePacked(
['uint8', 'address', 'uint256', 'uint256', 'bytes'],
[
tx.operation ?? OperationType.Call,
tx.to as Hex,
BigInt(tx.value),
BigInt(data.length),
bytesToHex(data)
]
)
return encoded.slice(2)
}
Loading

0 comments on commit 0fa6b2d

Please sign in to comment.