Code Monkey home page Code Monkey logo

Comments (4)

DavidMinarsch avatar DavidMinarsch commented on September 26, 2024

A few comments:

  • to create elcollectooor do I simply aea fetch? What else do you prep?
  • can you set DEBUG for the logs so we can see where exactly the exception gets raised?

from agent-academy-1.

0xArdi avatar 0xArdi commented on September 26, 2024

A few comments:

  • to create elcollectooor do I simply aea fetch? What else do you prep?
  • can you set DEBUG for the logs so we can see where exactly the exception gets raised?

I create the agent with

aea fetch --local valory/elcollectooor

The private key is generated from hardhat, I just added that in a ethereum_private_key.txt file and ran aea add-key ethereum.

This is already done in the branch issue/invalid_signature branch.

I'll set DEBUG right now, but as shown in the description the exception is thrown on Transaction.verify

from agent-academy-1.

0xArdi avatar 0xArdi commented on September 26, 2024
message=Message(sender=valory/abci:0.1.0,to=valory/elcollectooor_abci:0.1.0,dialogue_reference=('e4765c24c57c0855c5c0e8564c4ebbe60f478d57600f2d60d6e0a87e9dff460f', ''),message_id=1,performative=request_check_tx,target=0,tx=b'\n\xd1\x0b\n\x07payload\x12\xc5\x0b*\xc2\x0b\n)\n\x03id_\x12"\x1a 0c4d2f170ca64982ae04f623b9478e2f\n\xb9\n\n\x0fproject_details\x12\xa5\n\x1a\xa2\n{"artist_address": "0x584Dc29ddd6cA2a3200dD630dBF65B6A84Cb0d86", "price_per_token_in_wei": 3000000000000000000, "project_id": 56, "project_name": "Beauty in the Hurting", "artist": "Ryan Green", "description": "I find the patterns which emerge from the herding of sheep and the murmuration of starlings an apt metaphor for our own journeys of searching for truth, beauty and love while we\'re here. These pieces are best viewed live to witness how the,type=<packages.valory.protocols.abci.custom_types.CheckTxType object at 0x7f0e71d5c400>))
[2022-01-25 16:00:45,200] [DEBUG] [elcollectooor] Handling envelope: Envelope(to=valory/elcollectooor_abci:0.1.0, sender=valory/abci:0.1.0, protocol_specification_id=valory/abci:0.1.0, message=Message(sender=valory/abci:0.1.0,to=valory/elcollectooor_abci:0.1.0,dialogue_reference=('e4765c24c57c0855c5c0e8564c4ebbe60f478d57600f2d60d6e0a87e9dff460f', ''),message_id=1,performative=request_check_tx,target=0,tx=b'\n\xd1\x0b\n\x07payload\x12\xc5\x0b*\xc2\x0b\n)\n\x03id_\x12"\x1a 0c4d2f170ca64982ae04f623b9478e2f\n\xb9\n\n\x0fproject_details\x12\xa5\n\x1a\xa2\n{"artist_address": "0x584Dc29ddd6cA2a3200dD630dBF65B6A84Cb0d86", "price_per_token_in_wei": 3000000000000000000, "project_id": 56, "project_name": "Beauty in the Hurting", "artist": "Ryan Green", "description": "I find the patterns which emerge from the herding of sheep and the murmuration of starlings an apt metaphor for our own journeys of searching for truth, beauty and love while we\'re here. These pieces are best viewed live to witness how the,type=<packages.valory.protocols.abci.custom_types.CheckTxType object at 0x7f0e71d5c400>))
[2022-01-25 16:00:45,201] [DEBUG] [elcollectooor] Received ABCI request of type check_tx
[2022-01-25 16:00:45,201] [DEBUG] [elcollectooor] ABCI Handler: message=Message(sender=valory/abci:0.1.0,to=valory/elcollectooor_abci:0.1.0,dialogue_reference=('e4765c24c57c0855c5c0e8564c4ebbe60f478d57600f2d60d6e0a87e9dff460f', ''),message_id=1,performative=request_check_tx,target=0,tx=b'\n\xd1\x0b\n\x07payload\x12\xc5\x0b*\xc2\x0b\n)\n\x03id_\x12"\x1a 0c4d2f170ca64982ae04f623b9478e2f\n\xb9\n\n\x0fproject_details\x12\xa5\n\x1a\xa2\n{"artist_address": "0x584Dc29ddd6cA2a3200dD630dBF65B6A84Cb0d86", "price_per_token_in_wei": 3000000000000000000, "project_id": 56, "project_name": "Beauty in the Hurting", "artist": "Ryan Green", "description": "I find the patterns which emerge from the herding of sheep and the murmuration of starlings an apt metaphor for our own journeys of searching for truth, beauty and love while we\'re here. These pieces are best viewed live to witness how the,type=<packages.valory.protocols.abci.custom_types.CheckTxType object at 0x7f0e71d5c400>), sender=valory/abci:0.1.0
[2022-01-25 16:00:45,211] [DEBUG] [elcollectooor] Received 453 bytes from connection 127.0.0.1:32892
[2022-01-25 16:00:45,213] [ERROR] [elcollectooor] SignatureNotValidError: signature not valid.
[2022-01-25 16:00:45,213] [DEBUG] [elcollectooor] Received message of type: begin_block
[2022-01-25 16:00:45,214] [DEBUG] [elcollectooor] Put an envelope in the queue: Envelope(to=valory/abci:0.1.0, sender=valory/elcollectooor_abci:0.1.0, protocol_specification_id=valory/abci:0.1.0, message=Message(sender=valory/elcollectooor_abci:0.1.0,to=valory/abci:0.1.0,code=1,codespace=,data=b'',dialogue_reference=('e4765c24c57c0855c5c0e8564c4ebbe60f478d57600f2d60d6e0a87e9dff460f', '7d1342f6f9aabd1c98affdd90d6bf301a730f7d402bb587f71eabc711f1ea448'),events=<packages.valory.protocols.abci.custom_types.Events object at 0x7f0e72628580>,gas_used=0,gas_wanted=0,info=SignatureNotValidError: signature not valid.,log=,message_id=-1,performative=response_check_tx,target=1)).
[2022-01-25 16:00:45,215] [DEBUG] [elcollectooor] Received message of type: flush
[2022-01-25 16:00:45,216] [DEBUG] [elcollectooor] Checks for envelope from the in queue async way...
[2022-01-25 16:00:45,216] [DEBUG] [elcollectooor] Received message of type: flush
[2022-01-25 16:00:45,217] [DEBUG] [elcollectooor] Incoming envelope: Envelope(to=valory/elcollectooor_abci:0.1.0, sender=valory/abci:0.1.0, protocol_specification_id=valory/abci:0.1.0, message=Message(sender=valory/abci:0.1.0,to=valory/elcollectooor_abci:0.1.0,dialogue_reference=('9c2ff74561b02b262607aae97d410ff5d5322cd6e1e48652ddab889bc26b100c', ''),message_id=1,performative=request_flush,target=0))
[2022-01-25 16:00:45,218] [DEBUG] [elcollectooor] Sending envelope Envelope(to=valory/abci:0.1.0, sender=valory/elcollectooor_abci:0.1.0, protocol_specification_id=valory/abci:0.1.0, message=Message(sender=valory/elcollectooor_abci:0.1.0,to=valory/abci:0.1.0,code=1,codespace=,data=b'',dialogue_reference=('e4765c24c57c0855c5c0e8564c4ebbe60f478d57600f2d60d6e0a87e9dff460f', '7d1342f6f9aabd1c98affdd90d6bf301a730f7d402bb587f71eabc711f1ea448'),events=<packages.valory.protocols.abci.custom_types.Events object at 0x7f0e72628580>,gas_used=0,gas_wanted=0,info=SignatureNotValidError: signature not valid.,log=,message_id=-1,performative=response_check_tx,target=1))
[2022-01-25 16:00:45,218] [DEBUG] [elcollectooor] Handling envelope: Envelope(to=valory/elcollectooor_abci:0.1.0, sender=valory/abci:0.1.0, protocol_specification_id=valory/abci:0.1.0, message=Message(sender=valory/abci:0.1.0,to=valory/elcollectooor_abci:0.1.0,dialogue_reference=('9c2ff74561b02b262607aae97d410ff5d5322cd6e1e48652ddab889bc26b100c', ''),message_id=1,performative=request_flush,target=0))

from agent-academy-1.

DavidMinarsch avatar DavidMinarsch commented on September 26, 2024

@0xArdi solved this by changing

    def __init__(
        self, sender: str, project_details: Dict, id_: Optional[str] = None
    ) -> None:
        """Initialize an 'rest' transaction payload.

        :param sender: the sender (Ethereum) address
        :param project_details: the observed project id
        :param id_: the id of the transaction
        """
        super().__init__(sender, id_)
        self._project_details = json.dumps(project_details)

to

    def __init__(
        self, sender: str, project_details: str, id_: Optional[str] = None
    ) -> None:
        """Initialize an 'rest' transaction payload.

        :param sender: the sender (Ethereum) address
        :param project_details: the observed project id
        :param id_: the id of the transaction
        """
        super().__init__(sender, id_)
        self._project_details = project_details

from agent-academy-1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.