Skip to content

Commit

Permalink
delete console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
wk3368 committed Jun 17, 2022
1 parent 34760d4 commit a51a803
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,11 @@ export default class TransactionListItemDetails extends PureComponent {
};

handleCopyTxHex = () => {
console.log('handleCopyTxHex')
const { transactionGroup } = this.props;
const { primaryTransaction: transaction } = transactionGroup;
const {
multiSign: { signedTransactionHex: hash },
} = transaction;
console.log(hash)
copyToClipboard(hash);
};

Expand Down
1 change: 0 additions & 1 deletion ui/app/components/app/wallet-overview/token-overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ const TokenOverview = ({ className, token }) => {
<IconButton
className="token-overview__button"
onClick={() => {
console.log('click 2')
sendTokenEvent();
dispatch(updateSendToken(token));
// quick fix: OneKey postmessage will get lost if the popup window lost focus
Expand Down
1 change: 0 additions & 1 deletion ui/app/helpers/utils/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,6 @@ export function checkExistingCodes(code, list = []) {
* @returns {boolean} Whether or not the NFTMeta is in the list
*/
export function checkExistingNFT(nftMeta, list = []) {
console.log('checkExistingNFT', nftMeta, list)
if (!nftMeta) {
return false;
}
Expand Down
1 change: 0 additions & 1 deletion ui/app/hooks/useTokenTracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export function useTokenTracker(
if (!hideZeroBalanceTokens) {
const unAcceptTokens = tokens.filter((token) => currentAssets && !currentAssets[token.code]);
unAcceptTokens.map(({ code, decimals, symbol }) => {
console.log('unAcceptTokens', code, currentAssets[code])
const numberOfDecimals = decimals <= 9 ? 4 : 9;
const token = {
code,
Expand Down
1 change: 0 additions & 1 deletion ui/app/pages/add-nft/add-nft.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ class AddNFT extends Component {
this.handleCustomNameChange(metaInfo.name || '');
this.handleCustomDescriptionChange(metaInfo.description || '');
} catch (error) {
console.log('dsdf', typeof error, JSON.stringify(error), error.Error);
console.log(error);
// this.setState({
// customMetaError: error,
Expand Down
1 change: 0 additions & 1 deletion ui/app/pages/create-account/import-account/private-key.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ class PrivateKeyImportView extends Component {

importNewAccount('Private Key', [privateKey])
.then(({ selectedAddress }) => {
console.log('selectedAddress', selectedAddress);
if (selectedAddress) {
this.context.metricsEvent({
eventOpts: {
Expand Down
1 change: 0 additions & 1 deletion ui/app/pages/multi-sign-txn/txn-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ class TxnFileImportSubview extends Component {

const txnUint8Array = new Uint8Array(fileContents)
const txnHex = hexlify(txnUint8Array)
console.log('signTxnFile', { fileContents, txnHex })

// hide multiSign page
setTimeout(() => {
Expand Down
3 changes: 0 additions & 3 deletions ui/lib/token-tracker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class TokenTracker extends SafeEventEmitter {

constructor(opts = {}) {
super()
console.log('TokenTracker constructor', opts)
this.includeFailedTokens = opts.includeFailedTokens || false
this.userAddress = opts.userAddress || '0x0'
this.provider = opts.provider
Expand Down Expand Up @@ -54,13 +53,11 @@ class TokenTracker extends SafeEventEmitter {

async updateBalances() {
try {
console.log('stc-token-tracker updateBalances', this.tokens)
// await Promise.all(this.tokens.map((token) => {
// return token.updateBalance()
// }))

const newBalances = this.serialize()
console.log('newBalances', newBalances)
this._update(newBalances)
} catch (reason) {
this.emit('error', reason)
Expand Down

0 comments on commit a51a803

Please sign in to comment.