Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add channel destination example #78

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ contract MyLayer2 {
}
}
}

```

```typescript
Expand All @@ -77,6 +76,13 @@ const ethExit: SingleAssetExit = {
allocationType: AllocationType.withdrawHelper, // call a WithdrawHelper
metadata: "0x0123", // at the address, and with the calldata, encoded within
},
{
destination:
"0xB6DFA9441FBFA754CCECD5CEBCFF8E620F7720BAA32ABF424C73A8D7148CB927", // 32 bytes: another channel
amount: "0x05",
allocationType: AllocationType.simple,
metadata: "0x",
},
],
};

Expand Down
Loading