@@ -12,9 +12,9 @@ contract TEERegistryScript is Script {
1212
1313 function setUp () public {}
1414
15- address public constant ETHEREUM_SEPOLIA_ATTESTATION_FEE_ADDRESS = 0x95175096a9B74165BE0ac84260cc14Fc1c0EF5FF ;
15+ address public constant UNICHAIN_SEPOLIA_ATTESTATION_FEE_ADDRESS = 0x0d089B3fA00CBAD0a5098025519e9e4620622acF ;
1616
17- // note, this currently only works on Ethereum Sepolia chain
17+ // note, this currently only works on Unichain Sepolia chain
1818 function run () public {
1919 vm.startBroadcast ();
2020
@@ -37,10 +37,16 @@ contract TEERegistryScript is Script {
3737 // Example: Call verifyQuoteWithAttestationFee with a sample quote
3838 bytes memory sampleQuote = vm.readFileBinary ("test/quote.raw " );
3939
40- (bool success , bytes memory output ) = registry.verifyQuoteWithAttestationFee (address (ETHEREUM_SEPOLIA_ATTESTATION_FEE_ADDRESS), sampleQuote);
41-
42- if (! success) {
43- console.log (string (output));
40+ try registry.verifyQuoteWithAttestationFee (address (UNICHAIN_SEPOLIA_ATTESTATION_FEE_ADDRESS), sampleQuote) returns (bool success , bytes memory output ) {
41+ if (! success) {
42+ console.log ("verifyQuoteWithAttestationFee failed " );
43+ console.log ("error output: " , string (output));
44+ } else {
45+ console.log ("verifyQuoteWithAttestationFee succeeded " );
46+ }
47+ } catch (bytes memory errorOutput ) {
48+ console.log ("verifyQuoteWithAttestationFee reverted " );
49+ console.log ("error output: " , string (errorOutput));
4450 }
4551 console.log ("TEERegistry isVerified: " , registry.isVerified ());
4652
0 commit comments