diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json
index 03ec2a1c9..c872d2d31 100644
--- a/app/_locales/en/messages.json
+++ b/app/_locales/en/messages.json
@@ -790,6 +790,9 @@
"contractRequestingAccess": {
"message": "Contract requesting access"
},
+ "contractRequestingSignature": {
+ "message": "Contract requesting signature"
+ },
"contractRequestingSpendingCap": {
"message": "Contract requesting spending cap"
},
diff --git a/test/e2e/tests/signature-request.spec.js b/test/e2e/tests/signature-request.spec.js
index 9fa2a08d4..bbf2f742f 100644
--- a/test/e2e/tests/signature-request.spec.js
+++ b/test/e2e/tests/signature-request.spec.js
@@ -53,20 +53,22 @@ describe('Sign Typed Data V4 Signature Request', function () {
const content = await driver.findElements(
'.signature-request-content__info',
);
+ const verifyContractDetailsButton = await driver.findElement(
+ '.signature-request-content__verify-contract-details',
+ );
const origin = content[0];
- const address = content[1];
const message = await driver.findElement(
'.signature-request-data__node__value',
);
assert.equal(await title.getText(), 'Signature request');
assert.equal(await name.getText(), 'Ether Mail');
assert.equal(await origin.getText(), 'http://127.0.0.1:8080');
- assert.equal(
- await address.getText(),
- `${publicAddress.slice(0, 8)}...${publicAddress.slice(
- publicAddress.length - 8,
- )}`,
- );
+
+ verifyContractDetailsButton.click();
+ await driver.findElement({ text: 'Contract details', tag: 'h5' });
+ await driver.findElement('[data-testid="recipient"]');
+ await driver.clickElement({ text: 'Got it', tag: 'button' });
+
assert.equal(await message.getText(), 'Hello, Bob!');
// Approve signing typed data
await driver.clickElement(
@@ -137,20 +139,22 @@ describe('Sign Typed Data V3 Signature Request', function () {
const content = await driver.findElements(
'.signature-request-content__info',
);
+ const verifyContractDetailsButton = await driver.findElement(
+ '.signature-request-content__verify-contract-details',
+ );
const origin = content[0];
- const address = content[1];
const messages = await driver.findElements(
'.signature-request-data__node__value',
);
assert.equal(await title.getText(), 'Signature request');
assert.equal(await name.getText(), 'Ether Mail');
assert.equal(await origin.getText(), 'http://127.0.0.1:8080');
- assert.equal(
- await address.getText(),
- `${publicAddress.slice(0, 8)}...${publicAddress.slice(
- publicAddress.length - 8,
- )}`,
- );
+
+ verifyContractDetailsButton.click();
+ await driver.findElement({ text: 'Contract details', tag: 'h5' });
+ await driver.findElement('[data-testid="recipient"]');
+ await driver.clickElement({ text: 'Got it', tag: 'button' });
+
assert.equal(await messages[4].getText(), 'Hello, Bob!');
// Approve signing typed data
diff --git a/ui/components/app/modals/contract-details-modal/contract-details-modal.js b/ui/components/app/modals/contract-details-modal/contract-details-modal.js
index 9095ef160..c339f1313 100644
--- a/ui/components/app/modals/contract-details-modal/contract-details-modal.js
+++ b/ui/components/app/modals/contract-details-modal/contract-details-modal.js
@@ -40,6 +40,7 @@ export default function ContractDetailsModal({
tokenId,
assetName,
assetStandard,
+ isContractRequestingSignature,
}) {
const t = useI18nContext();
const [copiedTokenAddress, handleCopyTokenAddress] = useCopyToClipboard();
@@ -80,117 +81,123 @@ export default function ContractDetailsModal({
>
{t('contractDescription')}
-