@@ -23,13 +23,15 @@ describe("Test CCIP execution", function() {
2323 assert . equal ( result , keccak256 ( check ) , "response is equal" ) ;
2424 }
2525
26- const address = "0x6C5ed35574a9b4d163f75bBf0595F7540D8FCc2d" ;
26+ const address = "0xaeaa06a37e6421ac63120d6daddee0ffa04b43e8" ;
27+ const networkName = "sepolia" ;
28+
2729 const calldata = "0x1234" ;
2830
2931 it ( "testGet passes under normal operation" , async function ( ) {
3032 this . timeout ( 60000 ) ;
3133
32- const provider = connect ( "goerli" ) ;
34+ const provider = connect ( networkName ) ;
3335
3436 // testGet(bytes callData = "0x1234")
3537 const tx = {
@@ -44,7 +46,7 @@ describe("Test CCIP execution", function() {
4446 it ( "testGet should fail with CCIP not explicitly enabled by overrides" , async function ( ) {
4547 this . timeout ( 60000 ) ;
4648
47- const provider = connect ( "goerli" ) ;
49+ const provider = connect ( networkName ) ;
4850
4951 // testGet(bytes callData = "0x1234")
5052 const tx = {
@@ -56,15 +58,19 @@ describe("Test CCIP execution", function() {
5658 const result = await provider . call ( tx ) ;
5759 console . log ( result ) ;
5860 } , ( error : unknown ) => {
59- const offchainErrorData = "0x556f18300000000000000000000000006c5ed35574a9b4d163f75bbf0595f7540d8fcc2d00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000140b1494be100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004068747470733a2f2f6574686572732e7269636d6f6f2e776f726b6572732e6465762f746573742d636369702d726561642f7b73656e6465727d2f7b646174617d00000000000000000000000000000000000000000000000000000000000000021234000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d4d79206578747261206461746100000000000000000000000000000000000000" ;
61+ const offchainErrorData = concat ( [
62+ "0x556f1830000000000000000000000000" ,
63+ address ,
64+ "0x00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000140b1494be100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004068747470733a2f2f6574686572732e7269636d6f6f2e776f726b6572732e6465762f746573742d636369702d726561642f7b73656e6465727d2f7b646174617d00000000000000000000000000000000000000000000000000000000000000021234000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d4d79206578747261206461746100000000000000000000000000000000000000"
65+ ] ) ;
6066 return ( isCallException ( error ) && error . data === offchainErrorData ) ;
6167 } ) ;
6268 } ) ;
6369
6470 it ( "testGet should fail with CCIP explicitly disabled on provider" , async function ( ) {
6571 this . timeout ( 60000 ) ;
6672
67- const provider = connect ( "goerli" ) ;
73+ const provider = connect ( networkName ) ;
6874 provider . disableCcipRead = true ;
6975
7076 // testGetFail(bytes callData = "0x1234")
@@ -77,15 +83,20 @@ describe("Test CCIP execution", function() {
7783 const result = await provider . call ( tx ) ;
7884 console . log ( result ) ;
7985 } , ( error : unknown ) => {
80- const offchainErrorData = "0x556f18300000000000000000000000006c5ed35574a9b4d163f75bbf0595f7540d8fcc2d00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000140b1494be100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004068747470733a2f2f6574686572732e7269636d6f6f2e776f726b6572732e6465762f746573742d636369702d726561642f7b73656e6465727d2f7b646174617d00000000000000000000000000000000000000000000000000000000000000021234000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d4d79206578747261206461746100000000000000000000000000000000000000" ;
86+ const offchainErrorData = concat ( [
87+ "0x556f1830000000000000000000000000" ,
88+ address ,
89+ "0x00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000140b1494be100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004068747470733a2f2f6574686572732e7269636d6f6f2e776f726b6572732e6465762f746573742d636369702d726561642f7b73656e6465727d2f7b646174617d00000000000000000000000000000000000000000000000000000000000000021234000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d4d79206578747261206461746100000000000000000000000000000000000000"
90+ ] ) ;
91+
8192 return ( isCallException ( error ) && error . data === offchainErrorData ) ;
8293 } ) ;
8394 } ) ;
8495
8596 it ( "testGetFail should fail if all URLs 5xx" , async function ( ) {
8697 this . timeout ( 60000 ) ;
8798
88- const provider = connect ( "goerli" ) ;
99+ const provider = connect ( networkName ) ;
89100
90101 // testGetFail(bytes callData = "0x1234")
91102 const tx = {
@@ -106,7 +117,7 @@ describe("Test CCIP execution", function() {
106117 it ( "testGetSenderFail should fail if sender does not match" , async function ( ) {
107118 this . timeout ( 60000 ) ;
108119
109- const provider = connect ( "goerli" ) ;
120+ const provider = connect ( networkName ) ;
110121
111122 // testGetSenderFail(bytes callData = "0x1234")
112123 const tx = {
@@ -131,7 +142,7 @@ describe("Test CCIP execution", function() {
131142 it ( "testGetMissing should fail if early URL 4xx" , async function ( ) {
132143 this . timeout ( 60000 ) ;
133144
134- const provider = connect ( "goerli" ) ;
145+ const provider = connect ( networkName ) ;
135146
136147 // testGetMissing(bytes callData = "0x1234")
137148 const tx = {
@@ -153,7 +164,7 @@ describe("Test CCIP execution", function() {
153164 it ( "testGetFallback passes if any URL returns correctly" , async function ( ) {
154165 this . timeout ( 60000 ) ;
155166
156- const provider = connect ( "goerli" ) ;
167+ const provider = connect ( networkName ) ;
157168
158169 // testGetFallback(bytes callData = "0x1234")
159170 const tx = {
@@ -168,7 +179,7 @@ describe("Test CCIP execution", function() {
168179 it ( "testPost passes under normal operation" , async function ( ) {
169180 this . timeout ( 60000 ) ;
170181
171- const provider = connect ( "goerli" ) ;
182+ const provider = connect ( networkName ) ;
172183
173184 // testPost(bytes callData = "0x1234")
174185 const tx = {
0 commit comments