From 61ea646bc67fd2f296f60c6bfa00c3a65263e0cf Mon Sep 17 00:00:00 2001 From: Arsen Yeremin Date: Mon, 18 Nov 2024 08:59:29 -0800 Subject: [PATCH] ability to target rp from smart contract --- pkg/jobcreator/onchain_jobcreator.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/jobcreator/onchain_jobcreator.go b/pkg/jobcreator/onchain_jobcreator.go index 6b3c49c5..3100fc41 100644 --- a/pkg/jobcreator/onchain_jobcreator.go +++ b/pkg/jobcreator/onchain_jobcreator.go @@ -117,6 +117,9 @@ func (jobCreator *OnChainJobCreator) Start(ctx context.Context, cm *system.Clean parts := strings.Split(input, "=") if len(parts) == 2 { inputs[parts[0]] = parts[1] + if parts[0] == "target" { + options.Target.Address = parts[1] + } } } options.Inputs = inputs