You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to determine when proofs to transfer assets from Ethereum to NEAR have been already used. (Mentioned by @sept-en in #40 (comment))
This needs to be handled for:
ethConnector
eNEAR
erc20
We should have a similar function as the one described in #40:
functionproofInNearExists(nearProvider,connectorType,address,proof){// Return true if the proof already exists, false otherwise// connectorType can be one of ["EthConnector", "eNEAR", "Erc20"]}
One option that doesn't involve changing contracts, is querying directly the state. This is an example about how to do it:
@sept-en
Doing a view call to is_used_proof() produces the following error: (index):1216 Error: [-32602] Invalid params: Query data size 25730 is too large
So I think the computation of Proof.get_key() could be done offchain and the key can be used as the view argument directly in order to avoid the query data size error.
So I think the computation of Proof.get_key() could be done offchain and the key can be used as the view argument directly in order to avoid the query data size error.
This sounds good to me. We can rename it or even add a different function is_used_proof_from_key
We should make sure to expose this function publicly so other developer can use it in case they need that info.
We need to determine when proofs to transfer assets from Ethereum to NEAR have been already used. (Mentioned by @sept-en in #40 (comment))
This needs to be handled for:
We should have a similar function as the one described in #40:
One option that doesn't involve changing contracts, is querying directly the state. This is an example about how to do it:
The text was updated successfully, but these errors were encountered: