Skip to content

Commit

Permalink
bugfix for TxnConfirmaitionScreenWithData
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchung committed Jul 23, 2019
1 parent 65970fd commit 42b8c7e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ios/Rainbow/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1.2</string>
<string>1.1.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>2</string>
<string>1</string>
<key>CodePushDeploymentKey</key>
<string>$(CODEPUSH_KEY)</string>
<key>ITSAppUsesNonExemptEncryption</key>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Rainbow",
"version": "1.1.2-2",
"version": "1.1.3-1",
"private": true,
"scripts": {
"clean": "react-native-clean-project",
Expand Down Expand Up @@ -226,4 +226,4 @@
},
"test-runner": "mocha"
}
}
}
4 changes: 3 additions & 1 deletion src/screens/TransactionConfirmationScreenWithData.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,13 @@ class TransactionConfirmationScreenWithData extends PureComponent {

handleSignMessage = async (requestType) => {
const { transactionDetails } = this.props.navigation.state.params;
const message = get(transactionDetails, 'payload');
let message = null;
let flatFormatSignature = null;
if (requestType === 'message') {
message = get(transactionDetails, 'payload.params[1]');
flatFormatSignature = await signMessage(message);
} else if (requestType === 'messagePersonal') {
message = get(transactionDetails, 'payload.params[0]');
flatFormatSignature = await signPersonalMessage(message);
}

Expand Down

0 comments on commit 42b8c7e

Please sign in to comment.