From 235e9080f5159e3d736afef2edf11a5ff263340b Mon Sep 17 00:00:00 2001 From: Ferran Borreguero Date: Sun, 14 Apr 2024 14:29:58 +0100 Subject: [PATCH] Use correct kettle address --- cmd/geth/spellcmd/spellcmd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/geth/spellcmd/spellcmd.go b/cmd/geth/spellcmd/spellcmd.go index e249b16f6..429c68604 100644 --- a/cmd/geth/spellcmd/spellcmd.go +++ b/cmd/geth/spellcmd/spellcmd.go @@ -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 } @@ -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 @@ -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,