Skip to content

Commit

Permalink
Add TODOs for the eth_sendRawTransaction endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Peter committed Jan 31, 2024
1 parent 6f97c77 commit 4ad8061
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,13 @@ func (api *BlockChainAPI) SendRawTransaction(
return common.Hash{}, err
}

// TODO(m-Peter): Fetch the private key from a dedicated flow.json config file
privateKey, err := sdkCrypto.DecodePrivateKeyHex(sdkCrypto.ECDSA_P256, strings.Replace("2619878f0e2ff438d17835c2a4561cb87b4d24d72d12ec34569acd0dd4af7c21", "0x", "", 1))
if err != nil {
return common.Hash{}, err
}

// // TODO(m-Peter): Fetch the address from a dedicated flow.json config file
account, err := api.FlowClient.GetAccount(context.Background(), flow.HexToAddress("0xf8d6e0586b0a20c7"))
if err != nil {
return common.Hash{}, err
Expand Down

0 comments on commit 4ad8061

Please sign in to comment.