-
Notifications
You must be signed in to change notification settings - Fork 3
Description
In this example https://docs.scrt.network/secret-network-documentation/confidential-computing-layer/ethereum-evm-developer-toolkit/usecases/vrf/using-encrypted-payloads-for-vrf#defining-variables the EVM gateway address publicClientAddress is used as the callbackAddress
const publicClientAddress = '0x3879E146140b627a5C858a08e507B171D9E43139' //EVM gateway contract address
However, in the public Gateway.sol codebase, which still has traces of that VRF_info here https://github.com/SecretSaturn/SecretPath/blob/main/TNLS-Gateways/public-gateway/src/Gateway.sol#L863 associated with that same example, but instead they use a callback address value of encodeAddressToBase64(msg.sender), here
https://github.com/SecretSaturn/SecretPath/blob/main/TNLS-Gateways/public-gateway/src/Gateway.sol#L864, but that wouldn't be the EVM Gateway contract, since msg.sender would be the address of the user or contract that called that requestRandomness function in Gateway.sol where that code is.
Do you think that link of code should be encodeAddressToBase64(address(this)), where address(this) is the EVM Gateway address?