@@ -58,6 +58,8 @@ contract Gateway is Ownable, Utils, Base64 {
5858
5959 bytes public owner_public_key;
6060
61+ bytes28 public gatewayAddressBase64 = encodeAddressToBase64 (address (this ));
62+
6163 /*//////////////////////////////////////////////////////////////
6264 Structs
6365 //////////////////////////////////////////////////////////////*/
@@ -511,8 +513,7 @@ contract Gateway is Ownable, Utils, Base64 {
511513
512514 // Note - It is only possible to call this function `encodeAddressToBase64` three times
513515 // in this function, otherwise it generates error `Error: Transaction reverted without a reason`.
514- bytes28 senderAddressBase64 = encodeAddressToBase64 (msg .sender );
515- bytes28 gatewayAddressBase64 = encodeAddressToBase64 (address (this ));
516+ // bytes28 senderAddressBase64 = encodeAddressToBase64(msg.sender);
516517
517518 requestId = taskId;
518519
@@ -717,9 +718,6 @@ contract Gateway is Ownable, Utils, Base64 {
717718 function retrievePubkey (uint256 _callbackSelector , uint32 _callbackGasLimit ) external payable onlyOwner returns (uint256 requestId ) {
718719 console.log ("------ Gateway.retrievePubkey " );
719720
720- bytes28 senderAddressBase64 = encodeAddressToBase64 (address (msg .sender ));
721- bytes28 gatewayAddressBase64 = encodeAddressToBase64 (address (this ));
722-
723721 requestId = taskId;
724722
725723 // TODO: optionally add guard to verify value of _callbackSelector if necessary
@@ -737,6 +735,8 @@ contract Gateway is Ownable, Utils, Base64 {
737735 require (msg .value >= estimatedPrice, "Paid Callback Fee Too Low " );
738736 }
739737
738+ bytes memory userKey = bytes .concat ("A4MYU1tUEF1Keq5gwI/EX5aHGBtP38YlvRp1P6c5f+11 " );
739+
740740 // Note: Since contracts only have an address, but not public keys, where the
741741 // addresses are derived from the address of the user (or other contract) that
742742 // created them, which are in turn are derived from the public key of a normal
@@ -750,7 +750,7 @@ contract Gateway is Ownable, Utils, Base64 {
750750 '}","routing_info":" ' , routing_info,
751751 '","routing_code_hash":" ' , routing_code_hash,
752752 '","user_address":" ' , address (msg .sender ),
753- '","user_key":" ' , senderAddressBase64 ,
753+ '","user_key":" ' , userKey ,
754754 '","callback_address":" '
755755 );
756756
0 commit comments