Skip to content

Commit

Permalink
Use correct kettle address
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranbt committed Apr 14, 2024
1 parent 23d7a71 commit 235e908
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/geth/spellcmd/spellcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ var (

log.Info("Sending offchain confidential compute request", "kettle", clt.KettleAddress().String())

hash, err := sendConfRequest(clt, devchainKettleAddress, contractAddr, calldata, confInput)
hash, err := sendConfRequest(clt, contractAddr, calldata, confInput)
if err != nil {
return err
}
Expand Down Expand Up @@ -285,7 +285,7 @@ func getClient(ctx *cli.Context) (*sdk.Client, error) {
return clt, nil
}

func sendConfRequest(client *sdk.Client, kettleAddr, addr common.Address, calldata, confBytes []byte) (common.Hash, error) {
func sendConfRequest(client *sdk.Client, addr common.Address, calldata, confBytes []byte) (common.Hash, error) {
signer, err := client.GetSigner()
if err != nil {
return common.Hash{}, err
Expand All @@ -303,7 +303,7 @@ func sendConfRequest(client *sdk.Client, kettleAddr, addr common.Address, callda

computeRequest, err := types.SignTx(types.NewTx(&types.ConfidentialComputeRequest{
ConfidentialComputeRecord: types.ConfidentialComputeRecord{
KettleAddress: kettleAddr,
KettleAddress: client.KettleAddress(),
Nonce: nonce,
To: &addr,
Value: nil,
Expand Down

0 comments on commit 235e908

Please sign in to comment.