Skip to content

Commit

Permalink
fix: decoding of migrateToL2 (#4718)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu authored Dec 31, 2024
1 parent a6e3246 commit ca09816
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/coverage

# next.js
/.next/
**/.next/
/out/

# production
Expand Down
5 changes: 5 additions & 0 deletions apps/web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Types
src/types/contracts

# Auto-generated service workers
public/*.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { getMultiSendContractDeployment } from '@/services/contracts/deployments
import { createTx } from '@/services/tx/tx-sender/create'
import { Safe__factory } from '@/types/contracts'
import { type TransactionDetails } from '@safe-global/safe-gateway-typescript-sdk'
import { zeroPadValue } from 'ethers'
import DecodedData from '../DecodedData'
import ErrorMessage from '@/components/tx/ErrorMessage'
import { useSafeSDK } from '@/hooks/coreSDK/safeCoreSDK'
Expand Down Expand Up @@ -38,7 +37,7 @@ export const MigrationToL2TxData = ({ txDetails }: { txDetails: TransactionDetai
if (!multiSendAddress) {
return undefined
}
const searchString = `${execTransactionSelector}${zeroPadValue(multiSendAddress, 32).slice(2)}`
const searchString = execTransactionSelector
const indexOfTx = txData?.indexOf(searchString)
if (indexOfTx && txData) {
// Now we need to find the tx Data
Expand Down

0 comments on commit ca09816

Please sign in to comment.