Skip to content

Workaround to use senders in perprop#122

Closed
gustavo-grieco wants to merge 3 commits intomasterfrom
workaround-sender-perprop
Closed

Workaround to use senders in perprop#122
gustavo-grieco wants to merge 3 commits intomasterfrom
workaround-sender-perprop

Conversation

@gustavo-grieco
Copy link
Copy Markdown
Collaborator

No description provided.

perprop/Main.hs Outdated
Left e -> putStrLn ("couldn't parse config, " ++ e) >> pure Nothing
Right (PerPropConf t s p) -> pure . Just . (,p) $
defaultConfig & addrList ?~ (view address <$> s) & range .~ t & epochs .~ 1 & outputJson .~ True
defaultConfig & addrList ?~ (view address <$> s) & range .~ t & Echidna.Config.sender .~ (head $ view address <$> s) & epochs .~ 1 & outputJson .~ True
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we import sender unqualified + avoid the use of head?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how to use sender unqualified:

    Ambiguous occurrence ‘sender’
    It could refer to either ‘Echidna.Config.sender’,
                             imported from ‘Echidna.Config’ at perprop/Main.hs:27:1-21
                          or ‘Main.sender’, defined at perprop/Main.hs:90:1

To avoid the use of head (or any arbitrary way of selecting an element), we should decide which address from the sender list we should use (and this will be fixed during all the calls).

@gustavo-grieco gustavo-grieco changed the title Workaround to use the (first) sender from the list of addresses in perprop Workaround to use senders in perprop Aug 10, 2018
@gustavo-grieco
Copy link
Copy Markdown
Collaborator Author

Superseded by #128

@japesinator japesinator deleted the workaround-sender-perprop branch November 20, 2018 22:25
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

Successfully merging this pull request may close these issues.

2 participants