Allow off-chain signing and collectibles with 1.0.0 safes (#1966)

This commit is contained in:
Richard Meissner 2021-03-08 09:58:02 +01:00 committed by GitHub
parent 760a2a2b0f
commit f4f79f0303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ const SIGNERS = {
const getSignersByWallet = (isHW) => const getSignersByWallet = (isHW) =>
isHW ? [SIGNERS.ETH_SIGN] : [SIGNERS.EIP712_V3, SIGNERS.EIP712_V4, SIGNERS.EIP712, SIGNERS.ETH_SIGN] isHW ? [SIGNERS.ETH_SIGN] : [SIGNERS.EIP712_V3, SIGNERS.EIP712_V4, SIGNERS.EIP712, SIGNERS.ETH_SIGN]
export const SAFE_VERSION_FOR_OFFCHAIN_SIGNATURES = '>=1.1.1' export const SAFE_VERSION_FOR_OFFCHAIN_SIGNATURES = '>=1.0.0'
export const tryOffchainSigning = async (safeTxHash: string, txArgs, isHW: boolean): Promise<string> => { export const tryOffchainSigning = async (safeTxHash: string, txArgs, isHW: boolean): Promise<string> => {
let signature let signature

View File

@ -14,7 +14,7 @@ type FeatureConfigByVersion = {
} }
const FEATURES_BY_VERSION: FeatureConfigByVersion[] = [ const FEATURES_BY_VERSION: FeatureConfigByVersion[] = [
{ name: FEATURES.ERC721, validVersion: '>=1.1.1' }, { name: FEATURES.ERC721 },
{ name: FEATURES.ERC1155, validVersion: '>=1.1.1' }, { name: FEATURES.ERC1155, validVersion: '>=1.1.1' },
{ name: FEATURES.SAFE_APPS }, { name: FEATURES.SAFE_APPS },
{ name: FEATURES.CONTRACT_INTERACTION }, { name: FEATURES.CONTRACT_INTERACTION },