GithubHelp home page GithubHelp logo

Comments (13)

d-xo avatar d-xo commented on June 3, 2024 3

@tarrencev thanks for pointing this out re: the installer. It's a little unfortunante, but it's just a cosmetic issue, and in general a weird little artefact from our release process.

It seems as though github has decided that hevm/0.48.1 is the latest release instead of dapp/0.34.1 as I wanted. The only difference between these two commits is that dapp and seth have incremented version numbers in the later, the versions of dapp and seth in the hevm/0.48.1 tag otherwise behave exactly the same.

from forge-template.

tarrencev avatar tarrencev commented on June 3, 2024 2

okay all good now thanks! something to note is the dapp installer is still distributing 0.34.0 but duppgrade did the job!

> ETH_FROM=0x35754FD45136F2a9996a75Cf2955315C9Cd35054 ETH_KEYSTORE=~/.eth_keystore  seth sign "0xbeef"
Ethereum account passphrase (not echoed): 
0x94bc3f248eea93df8c2e4ad75599a9992176a7f279cc241ff29c51a034e967ed0cf7b9183edc2004ed146d48fb885cd944cca1f815621d50ae754ae51e2d8b001c

from forge-template.

transmissions11 avatar transmissions11 commented on June 3, 2024 1

hmm shell.nix does not determine the dapptools version you use on your local machine, only in nix-shell

make sure you actually install the latest dapptools with either the installer or duppgrade

from forge-template.

transmissions11 avatar transmissions11 commented on June 3, 2024 1

okay all good now thanks! something to note is the dapp installer is still distributing 0.34.0 but duppgrade did the job!

ah yikes you're right! will bring up

from forge-template.

gakonst avatar gakonst commented on June 3, 2024 1

gg - good to hear it got resolved.

from forge-template.

d-xo avatar d-xo commented on June 3, 2024

Do you have ETH_RPC_ACCOUNTS set?

Are you using the latest dapptools release?

from forge-template.

ezynda3 avatar ezynda3 commented on June 3, 2024

I'm having the same issue. No ETH_RPC_ACCOUNTS is set.

from forge-template.

tarrencev avatar tarrencev commented on June 3, 2024

Do you have ETH_RPC_ACCOUNTS set?

Are you using the latest dapptools release?

I believe ETH_RPC_ACCOUNTS is set by .dapprc:
https://github.com/gakonst/dapptools-template/blob/77bf4640e9e664a20de0a6bded7b1bdfa498702f/.dapprc#L12
It's using the dapptools configured in shell.nix: https://github.com/gakonst/dapptools-template/blob/77bf4640e9e664a20de0a6bded7b1bdfa498702f/shell.nix#L5

from forge-template.

gakonst avatar gakonst commented on June 3, 2024

Updated version here in case that was the issue. Can you please re-test? I am not experiencing this error. Even if ETH_RPC_ACCOUNTS is set, if you've set ETH_FROM to an address that's in your keystore, it should still work.

from forge-template.

tarrencev avatar tarrencev commented on June 3, 2024

hmm interesting. this is what i'm running, i can try with 0.34.1.

dapp --version
dapp 0.34.0
solc, the solidity compiler commandline interface
Version: 0.8.6+commit.11564f7e.Darwin.appleclang
hevm 0.48.0

but here is something a bit weird:

I try to import an account from metamask and don't set a password. On import is echos 35754fd45136f2a9996a75cf2955315c9cd35054 which corresponds to the metamask created account address. But when running ethsign ls it outputs a different address. Additionally, if it try sign a message using seth with the account and no pass it fails.

> ethsign import --keystore ~/.eth_keystore
Private key as 64 hexadecimal digits (not echoed): 
Choose a passphrase (not echoed): **no password provided**
35754fd45136f2a9996a75cf2955315c9cd35054
> ethsign ls                               
0xf28e313B87BFD2c8f7aa9880fFAfF299db94Cb96 keystore
> ETH_FROM=0xf28e313B87BFD2c8f7aa9880fFAfF299db94Cb96 seth sign "0xbeef"
Ethereum account passphrase (not echoed): could not decrypt key with given password **no password provided**

from forge-template.

transmissions11 avatar transmissions11 commented on June 3, 2024

hmm interesting. this is what i'm running, i can try with 0.34.1.

oo yes that's probably it. @gakonst's PR to override ETH_RPC_ACCOUNTS if ETH_FROM is in your keystore was just introduced in the latest update (0.34.1 for dapp, 0.11.0 for seth)

Screen Shot 2021-09-11 at 3 03 35 PM

from forge-template.

transmissions11 avatar transmissions11 commented on June 3, 2024

I try to import an account from metamask and don't set a password. On import is echos 35754fd45136f2a9996a75cf2955315c9cd35054 which corresponds to the metamask created account address. But when running ethsign ls it outputs a different address. Additionally, if it try sign a message using seth with the account and no pass it fails.

Are you sure you're setting the keystore directory the same one you imported that new key in?

from forge-template.

tarrencev avatar tarrencev commented on June 3, 2024

ah ok got it! also i figured out that ethsign ls was defaulting to a keystore parity previously configured 🤦‍♂️

from forge-template.

Related Issues (11)

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.