diff --git a/__tests__/components/__snapshots__/Settings.test.js.snap b/__tests__/components/__snapshots__/Settings.test.js.snap index 4a9f08d7c..3ed273443 100644 --- a/__tests__/components/__snapshots__/Settings.test.js.snap +++ b/__tests__/components/__snapshots__/Settings.test.js.snap @@ -923,7 +923,7 @@ exports[`Settings renders without crashing 1`] = ` Manage your neon wallet - v - 2.12.6 + 2.12.7
{ this.updateRowField(0, 'address', account.address) } - // Calculate expected gas fee - this.setState({ loading: true }) - const results = await this.attemptToCalculateN3Fees([]) - if (results) { - const transactionFee = ( - Number(results.networkFee) + Number(results.systemFee) - ).toFixed(8) - this.setState({ expectedGasFee: transactionFee }) + if (this.props.chain === 'neo3') { + // Calculate expected gas fee + this.setState({ loading: true }) + const results = await this.attemptToCalculateN3Fees([]) + if (results) { + const transactionFee = ( + Number(results.networkFee) + Number(results.systemFee) + ).toFixed(8) + this.setState({ expectedGasFee: transactionFee }) + } } } @@ -203,7 +205,10 @@ export default class Send extends React.Component { if (newState.length > 1) { newState.splice(index, 1) } - this.attemptToCalculateN3Fees(newState) + + if (this.props.chain === 'neo3') { + this.attemptToCalculateN3Fees(newState) + } return { sendRowDetails: newState } }) } diff --git a/package.json b/package.json index d7af716dc..cbc2910b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Neon", - "version": "2.12.6", + "version": "2.12.7", "main": "./main.js", "description": "Light wallet for NEO blockchain", "homepage": "https://github.com/CityOfZion/neon-wallet",