Skip to content

Commit

Permalink
pnpm lint:fix
Browse files Browse the repository at this point in the history
Signed-off-by: Shankar <[email protected]>
  • Loading branch information
shankars99 committed Nov 20, 2024
1 parent 4b9be2f commit 0278fcb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 1 addition & 3 deletions examples/oft-alt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
<a href="https://layerzero.network" style="color: #a77dff">Homepage</a> | <a href="https://docs.layerzero.network/" style="color: #a77dff">Docs</a> | <a href="https://layerzero.network/developers" style="color: #a77dff">Developers</a>
</p>


<h1 align="center">Omnichain Fungible Token (OFTAdapterAlt and OFTAlt) Example for Alt Endpoints</h1>

# ⚠️ ** This code is currently under audit and should not yet be used in production, the readme might not be complete
# ⚠️ \*\* This code is currently under audit and should not yet be used in production, the readme might not be complete

<p align="center">
<a href="https://docs.layerzero.network/v2/developers/evm/oft/quickstart" style="color: #a77dff">Quickstart</a> | <a href="https://docs.layerzero.network/contracts/oapp-configuration" style="color: #a77dff">Configuration</a> | <a href="https://docs.layerzero.network/contracts/options" style="color: #a77dff">Message Execution Options</a> | <a href="https://docs.layerzero.network/v2/developers/evm/technical-reference/deployed-contracts" style="color: #a77dff">Endpoint, MessageLib, & Executor Addresses</a> | <a
Expand All @@ -27,7 +26,6 @@ href="https://docs.layerzero.network/v2/developers/evm/technical-reference/dvn-a

</p>


## So what is an Omnichain Fungible Token?

The Omnichain Fungible Token (OFTAlt) Standard is an ERC20 token that can be transferred across multiple blockchains without asset wrapping or middlechains.
Expand Down
10 changes: 6 additions & 4 deletions examples/oft-alt/test/foundry/MyOFTAlt.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ contract MyOFTAltTest is TestHelperOz5 {
)
);



// config and wire the ofts
address[] memory ofts = new address[](3);
ofts[0] = address(aOFT);
Expand Down Expand Up @@ -266,7 +264,8 @@ contract MyOFTAltTest is TestHelperOz5 {
amountCreditLD,
abi.encodePacked(addressToBytes32(msg.sender), composeMsg)
);
(uint64 nonce_, uint32 srcEid_, uint256 amountCreditLD_, bytes32 composeFrom_, bytes memory composeMsg_) = this.decodeOFTComposeMsgCodec(message);
(uint64 nonce_, uint32 srcEid_, uint256 amountCreditLD_, bytes32 composeFrom_, bytes memory composeMsg_) = this
.decodeOFTComposeMsgCodec(message);

assertEq(nonce_, nonce);
assertEq(srcEid_, srcEid);
Expand Down Expand Up @@ -317,7 +316,10 @@ contract MyOFTAltTest is TestHelperOz5 {
}

function test_toLD(uint64 amountSD) public {
assertEq(amountSD * MyOFTAltMock(address(aOFT)).decimalConversionRate(), aOFT.asOFTAltMock().toLD(uint64(amountSD)));
assertEq(
amountSD * MyOFTAltMock(address(aOFT)).decimalConversionRate(),
aOFT.asOFTAltMock().toLD(uint64(amountSD))
);
}

function test_toSD(uint256 amountLD) public {
Expand Down

0 comments on commit 0278fcb

Please sign in to comment.