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

SENDER_NOT_A_MEMBER When setting consent #139

Open
om26er opened this issue Sep 7, 2020 · 0 comments
Open

SENDER_NOT_A_MEMBER When setting consent #139

om26er opened this issue Sep 7, 2020 · 0 comments

Comments

@om26er
Copy link
Contributor

om26er commented Sep 7, 2020

That is an interesting error because the API to set consent only takes the delegate address, which I assume cannot be used to determine if the caller really is a member.

https://github.com/crossbario/xbr-protocol/blob/825d54c9e222582dfae60504f6827ed561dd1d49/contracts/XBRMarket.sol#L422
Below are the logs that I see. Note: this is likely NOT a regression, rather the API was not completed (?)

Traceback (most recent call last):
  File "/home/om26er/scm/crossbario/xbr-www/venv/lib/python3.8/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/home/om26er/scm/crossbario/xbr-www/venv/lib/python3.8/site-packages/twisted/internet/defer.py", line 1475, in gotResult
    _inlineCallbacks(r, g, status)
  File "/home/om26er/scm/crossbario/xbr-www/venv/lib/python3.8/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/om26er/scm/crossbario/xbr-www/venv/lib/python3.8/site-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
--- <exception caught here> ---
  File "/home/om26er/scm/crossbario/crossbarfx/crossbarfx/edge/worker/xbr/_marketmaker.py", line 2580, in set_consent
    _txn_hash = await deferToThread(self._send_setConsent, _market_oid.bytes, delegate, delegate_type,
  File "/home/om26er/scm/crossbario/xbr-www/venv/lib/python3.8/site-packages/twisted/python/threadpool.py", line 250, in inContext
    result = inContext.theWork()
  File "/home/om26er/scm/crossbario/xbr-www/venv/lib/python3.8/site-packages/twisted/python/threadpool.py", line 266, in <lambda>
    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
  File "/home/om26er/scm/crossbario/xbr-www/venv/lib/python3.8/site-packages/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/home/om26er/scm/crossbario/xbr-www/venv/lib/python3.8/site-packages/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "/home/om26er/scm/crossbario/crossbarfx/crossbarfx/edge/worker/xbr/_marketmaker.py", line 461, in _send_setConsent
    txn_hash = self._w3.eth.sendRawTransaction(signed_txn.rawTransaction)
  File "/home/om26er/scm/crossbario/xbr-www/venv/lib/python3.8/site-packages/web3/eth.py", line 390, in sendRawTransaction
    return self.web3.manager.request_blocking(
  File "/home/om26er/scm/crossbario/xbr-www/venv/lib/python3.8/site-packages/web3/manager.py", line 153, in request_blocking
    raise ValueError(response["error"])
builtins.ValueError: {'message': 'VM Exception while processing transaction: revert SENDER_NOT_A_MEMBER', 'code': -32000, 'data': {'0x2f5fe22160bd9c082e44eff39f7dbc3e883f9910dd8e8fe0315288e351b62955': {'error': 'revert', 'program_counter': 1892, 'return': '0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001353454e4445525f4e4f545f415f4d454d42455200000000000000000000000000', 'reason': 'SENDER_NOT_A_MEMBER'}, 'stack': 'c: VM Exception while processing transaction: revert SENDER_NOT_A_MEMBER\n    at Function.c.fromResults (/app/ganache-core.docker.cli.js:2:257479)\n    at w.processBlock (/app/ganache-core.docker.cli.js:17:178165)\n    at process._tickCallback (internal/process/next_tick.js:68:7)', 'name': 'c'}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants