Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jfschwarz committed Mar 1, 2024
1 parent 3d5144f commit e8e0515
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion extension/src/providers/useWalletConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const useWalletConnect = (connectionId: string): WalletConnectResult | null => {
provider ? provider.connected : false
)
const [accounts, setAccounts] = useState(provider ? provider.accounts : [])
const [chainId, setChainId] = useState(provider?.chainId)
const [chainId, setChainId] = useState<number | undefined>()

// effect to initialize the provider
useEffect(() => {
Expand Down
7 changes: 0 additions & 7 deletions extension/src/utils/decodeError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ const RolesV1PermissionsInterface =
ContractFactories[KnownContracts.PERMISSIONS].createInterface()
const RolesV2Interface =
ContractFactories[KnownContracts.ROLES_V2].createInterface()
console.log(
Object.keys(RolesV2Interface.errors).map((errSig) => ({
errSig,
sigHash: RolesV2Interface.getSighash(errSig),
error: RolesV2Interface.errors[errSig],
}))
)

export function getRevertData(error: JsonRpcError) {
// The errors thrown when a transaction is reverted use different formats, depending on:
Expand Down

0 comments on commit e8e0515

Please sign in to comment.