Skip to content

Commit

Permalink
Merge pull request #116 from abhayks1/recovery_fixes
Browse files Browse the repository at this point in the history
Recovery Interact Fixes
  • Loading branch information
benjaminbollen authored Feb 25, 2019
2 parents 7d74770 + ec40ace commit d9792b9
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions lib/ContractInteract/Recovery.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,16 +396,16 @@ class Recovery {

const typedDataInput = {
types: {
EIP712Domain: [{ name: 'verifyingContract', type: 'address' }],
SafeTx: [
EIP712Domain: [{ name: 'delayedRecoveryModule', type: 'address' }],
InitiateRecoveryStruct: [
{ name: 'prevOwner', type: 'address' },
{ name: 'oldOwner', type: 'address' },
{ name: 'newOwner', type: 'address' }
]
},
primaryType: 'InitiateRecoveryStruct',
domain: {
verifyingContract: this.delayedRecoveryAddress
delayedRecoveryModule: this.delayedRecoveryAddress
},
message: {
prevOwner: prevOwner,
Expand Down Expand Up @@ -449,16 +449,16 @@ class Recovery {

const typedDataInput = {
types: {
EIP712Domain: [{ name: 'verifyingContract', type: 'address' }],
SafeTx: [
EIP712Domain: [{ name: 'delayedRecoveryModule', type: 'address' }],
InitiateRecoveryStruct: [
{ name: 'prevOwner', type: 'address' },
{ name: 'oldOwner', type: 'address' },
{ name: 'newOwner', type: 'address' }
]
},
primaryType: 'AbortRecoveryStruct',
domain: {
verifyingContract: this.delayedRecoveryAddress
delayedRecoveryModule: this.delayedRecoveryAddress
},
message: {
prevOwner: prevOwner,
Expand Down Expand Up @@ -497,12 +497,15 @@ class Recovery {

const typedDataInput = {
types: {
EIP712Domain: [{ name: 'verifyingContract', type: 'address' }],
SafeTx: [{ name: 'oldRecoveryOwner', type: 'address' }, { name: 'newRecoveryOwner', type: 'address' }]
EIP712Domain: [{ name: 'delayedRecoveryModule', type: 'address' }],
InitiateRecoveryStruct: [
{ name: 'oldRecoveryOwner', type: 'address' },
{ name: 'newRecoveryOwner', type: 'address' }
]
},
primaryType: 'ResetRecoveryOwnerStruct',
domain: {
verifyingContract: this.delayedRecoveryAddress
delayedRecoveryModule: this.delayedRecoveryAddress
},
message: {
oldRecoveryOwner: oldRecoveryOwner,
Expand Down

0 comments on commit d9792b9

Please sign in to comment.