Skip to content

Conversation

@lgiussan
Copy link
Collaborator

The vfy-oft repository is based on Layer Zero native-oft-adapter template.

At the time vfy-oft was created, the template didn't include a helper task for easily bridging tokens. However this is being added in this PR, currently under review.

The current PR is a straightforward replica of the upstream PR.

N.B. In order for the send task to work out of the box, the VFlow rpc node version should be >= 1.0.1, because release 1.0.1 fixes a misconfiguration of eth_estimateGas, which makes the task itself fail.
As a workaround, it's still possible to use a rpc node at version 1.0.0, but it will be necessary to hardcode the gas limit like this

diff --git a/tasks/sendEvm.ts b/tasks/sendEvm.ts
index 1916887..a09ba9c 100644
--- a/tasks/sendEvm.ts
+++ b/tasks/sendEvm.ts
@@ -289,6 +289,7 @@ export async function sendEvm(
             )
             tx = await oft.send(sendParam, msgFee, signer.address, {
                 value: totalValue,
+                gasLimit: 1_000_000,
             })
         } else {
             tx = await oft.send(sendParam, msgFee, signer.address, {

@lgiussan lgiussan requested review from 95DDB and cronicc September 24, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants