Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UNSUPPORTED_OPERATION error #1

Open
ozunaltun opened this issue May 28, 2021 · 5 comments
Open

UNSUPPORTED_OPERATION error #1

ozunaltun opened this issue May 28, 2021 · 5 comments

Comments

@ozunaltun
Copy link

When I run the code I get an error like this, after the error the code runs and detects new pairs. However, it does not buy. I could not find where the error was.

Error: cannot override "_hex","_isBigNumber","fromTwos","toTwos","abs","add","sub","div","mul","mod","pow","and","or","xor","mask","shl","shr","eq","lt","lte","gt","gte","isNegative","isZero","toNumber","toString","toHexString","toJSON" (operation="overrides", overrides=["_hex","_isBigNumber","fromTwos","toTwos","abs","add","sub","div","mul","mod","pow","and","or","xor","mask","shl","shr","eq","lt","lte","gt","gte","isNegative","isZero","toNumber","toString","toHexString","toJSON"], code=UNSUPPORTED_OPERATION, version=contracts/5.0.12)
at Logger.makeError (C:\virtual04\pancakeswap-bot-main\node_modules@ethersproject\logger\lib\index.js:180:21)
at Logger.throwError (C:\virtual04\pancakeswap-bot-main\node_modules@ethersproject\logger\lib\index.js:189:20)
at C:\virtual04\pancakeswap-bot-main\node_modules@ethersproject\contracts\lib\index.js:237:32
at step (C:\virtual04\pancakeswap-bot-main\node_modules@ethersproject\contracts\lib\index.js:48:23)
at Object.next (C:\virtual04\pancakeswap-bot-main\node_modules@ethersproject\contracts\lib\index.js:29:53)
at fulfilled (C:\virtual04\pancakeswap-bot-main\node_modules@ethersproject\contracts\lib\index.js:20:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
reason: 'cannot override "_hex","_isBigNumber","fromTwos","toTwos","abs","add","sub","div","mul","mod","pow","and","or","xor","mask","shl","shr","eq","lt","lte","gt","gte","isNegative","isZero","toNumber","toString","toHexString","toJSON"',
code: 'UNSUPPORTED_OPERATION',
operation: 'overrides',
overrides: [
'_hex', '_isBigNumber', 'fromTwos',
'toTwos', 'abs', 'add',
'sub', 'div', 'mul',
'mod', 'pow', 'and',
'or', 'xor', 'mask',
'shl', 'shr', 'eq',
'lt', 'lte', 'gt',
'gte', 'isNegative', 'isZero',
'toNumber', 'toString', 'toHexString',
'toJSON'
]
}

New pair detected
=================
token0: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c
token1: 0xC304742Fd4666B4A5f53Ad02Df999c3f6d6E5B69
pairAddress: 0x429798E066672819064c6335E8d7fBE4E622Bb45`
@davvvvvvvy
Copy link
Owner

Did you try to change gasPrice and gasLimit numbers?

When I run the code I get an error like this, after the error the code runs and detects new pairs. However, it does not buy. I could not find where the error was.

Error: cannot override "_hex","_isBigNumber","fromTwos","toTwos","abs","add","sub","div","mul","mod","pow","and","or","xor","mask","shl","shr","eq","lt","lte","gt","gte","isNegative","isZero","toNumber","toString","toHexString","toJSON" (operation="overrides", overrides=["_hex","_isBigNumber","fromTwos","toTwos","abs","add","sub","div","mul","mod","pow","and","or","xor","mask","shl","shr","eq","lt","lte","gt","gte","isNegative","isZero","toNumber","toString","toHexString","toJSON"], code=UNSUPPORTED_OPERATION, version=contracts/5.0.12)

at Logger.makeError (C:\virtual04\pancakeswap-bot-main\node_modules\@ethersproject\logger\lib\index.js:180:21)

at Logger.throwError (C:\virtual04\pancakeswap-bot-main\node_modules\@ethersproject\logger\lib\index.js:189:20)

at C:\virtual04\pancakeswap-bot-main\node_modules\@ethersproject\contracts\lib\index.js:237:32

at step (C:\virtual04\pancakeswap-bot-main\node_modules\@ethersproject\contracts\lib\index.js:48:23)

at Object.next (C:\virtual04\pancakeswap-bot-main\node_modules\@ethersproject\contracts\lib\index.js:29:53)

at fulfilled (C:\virtual04\pancakeswap-bot-main\node_modules\@ethersproject\contracts\lib\index.js:20:58)

at processTicksAndRejections (node:internal/process/task_queues:96:5) {

reason: 'cannot override "_hex","_isBigNumber","fromTwos","toTwos","abs","add","sub","div","mul","mod","pow","and","or","xor","mask","shl","shr","eq","lt","lte","gt","gte","isNegative","isZero","toNumber","toString","toHexString","toJSON"',

code: 'UNSUPPORTED_OPERATION',

operation: 'overrides',

overrides: [

'_hex',     '_isBigNumber', 'fromTwos',

'toTwos',   'abs',          'add',

'sub',      'div',          'mul',

'mod',      'pow',          'and',

'or',       'xor',          'mask',

'shl',      'shr',          'eq',

'lt',       'lte',          'gt',

'gte',      'isNegative',   'isZero',

'toNumber', 'toString',     'toHexString',

'toJSON'

]

}

New pair detected

=================

token0: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c

token1: 0xC304742Fd4666B4A5f53Ad02Df999c3f6d6E5B69

pairAddress: 0x429798E066672819064c6335E8d7fBE4E622Bb45`

@ikhwanb
Copy link

ikhwanb commented May 28, 2021

Hi, i got the same error too, i've change the gas code as per this snippet. Please assist thanks.

Date.now() + 1000 * 60 * 10, // 10 minutes
    {
        gasPrice: '10000',
        gasLimit: '2000000'
    },
  )
  const receipt = await tx.wait()

@Spedejr
Copy link

Spedejr commented Aug 19, 2021

i have same problem too i tried to adjust gas prices and i0+0+istal type script and ethers

@Spedejr
Copy link

Spedejr commented Aug 19, 2021

i just detects new pairs nothing else

@davvvvvvvy
Copy link
Owner

I have done this in Python and it works. Would upload later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants