Comments (13)
@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.
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.
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.
okay all good now thanks! something to note is the dapp installer is still distributing
0.34.0
butduppgrade
did the job!
ah yikes you're right! will bring up
from forge-template.
gg - good to hear it got resolved.
from forge-template.
Do you have ETH_RPC_ACCOUNTS
set?
Are you using the latest dapptools release?
from forge-template.
I'm having the same issue. No ETH_RPC_ACCOUNTS
is set.
from forge-template.
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.
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.
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.
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
)
from forge-template.
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.
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)
- Can the OZ submodule be moved? HOT 2
- ci: Check prettier + solhint conformance in ci.yml
- `estimate_gas` function in `common.sh` will break after October 18th HOT 1
- Should GreeterTest be an abstract contract? HOT 1
- make test throwing nix permissions issue HOT 2
- Make multi-contract compatible HOT 1
- Compile before deploying HOT 1
- Packages not found HOT 1
- Installing on M1 Mac
- Update forge-std version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forge-template.