ethereum / ethereum/populus

ContractFactory classes do not retain their names.

Open
#281 4 comments 0 reactions 0 assignees View on GitHub
Good First Issue
Dominant language
No language data
Stars
319
Forks
110
PR merge metrics
No merged PRs in 30d

Description

migrated from: https://github.com/pipermerriam/web3.py/issues/172

### What was wrong?

Currently the contract object does not know its own name (the contract name in the source code).

```
contract.__class__.__name__
'PopulusContract'
```

#### Cute Animal Picture

```
(__)
(__) [@@] ? (__) ? (__)
(oo) <=|^^|=> ? (oo) ? |\/|(oo)
/-------VV /--------- \/ /-------\/ /--| \--\/
/ | || / | || / | || / | ||
* ||----|| / | || * ||----|| * ||----||
^^ ^^ * ||------|| ^^ ^^ ^^ ^^
^^ ^^
Cownt Dracula Francownstein Where Cow Cow bird
Cow Cow
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the ContractFactory classes and the code that creates the contract object shown in the example. Determine how the source contract name is available there; done means the resulting contract object exposes that name rather than the generic PopulusContract class name.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
blockchain
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.