Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions publish/src/commands/deploy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,16 @@ const deploy = async ({
providerUrl = envProviderUrl;
}

// Here we set a default private key for local-ovm deployment, as the
// OVM geth node has no notion of local/unlocked accounts.
// Deploying without a private key will give the error "OVM: Unsupported RPC method",
// as the OVM node does not support eth_sendTransaction, which inherently relies on
// the unlocked accounts on the node.
if (network === 'local' && useOvm && !privateKey) {
// Account #0: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
privateKey = '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80';
}

// when not in a local network, and not forking, and the privateKey isn't supplied,
// use the one from the .env file
if (network !== 'local' && !useFork && !privateKey) {
Expand Down