Skip to content

Commit

Permalink
Transfer wNEAR on storage deposit
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-en committed Dec 11, 2023
1 parent abc94c9 commit cb8ff91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions silo-to-silo/contracts/src/SiloToSilo.sol
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ contract SiloToSilo is Initializable, UUPSUpgradeable, AccessControlUpgradeable,
) private {
string memory nearTokenAccountId = registeredTokens[token].nearTokenAccountId;
require(bytes(nearTokenAccountId).length > 0, "The token is not registered");
near.wNEAR.transferFrom(msg.sender, address(this), storageDepositAmount);

PromiseCreateArgs memory callStorageDeposit = near.call(
nearTokenAccountId,
Expand Down

0 comments on commit cb8ff91

Please sign in to comment.