Skip to content

Commit c358e82

Browse files
committed
cast call in place of add-task
1 parent e40b4c3 commit c358e82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ echo "Service info: $service_info"
126126

127127
# Submit AVS request -> chain
128128
SERVICE_ID=`echo $service_info | jq -r .service[0]`; echo "Service ID: $SERVICE_ID"
129-
wavs-cli add-task --input "Nashville,TN" --data ./.docker/cli --service-id ${SERVICE_ID}
129+
cast send ${TRIGGER_ADDR} "addTrigger(bytes)" `cast format-bytes32-string Nashville,TN` --rpc-url http://localhost:8545 --private-key $FOUNDRY_ANVIL_PRIVATE_KEY
130+
131+
# TODO: get event from this Tx and parse it to get the trigger ID
130132

131133
# Grab data from the contract directly
132134
hex_bytes=$(cast decode-abi "getData(uint64)(bytes)" `cast call ${SERVICE_HANDLER_ADDR} "getData(uint64)" 1`)

0 commit comments

Comments
 (0)