velas / velas-chain

Other
70 stars 35 forks source link

how to get 32byte native_recipient address ? #446

Closed mikewang68 closed 1 year ago

mikewang68 commented 1 year ago

Problem

when i use metamask managment wallet , i want to transfer token from metamask to native by using remix programming , document say call interface TransferToNative , but velas account is 44byte , not 32byte

pragma solidity ^0.6.0;

interface TransferToNative { function transferToNative(bytes32 native_recipient) virtual external payable; }

Proposed Solution

vldm commented 1 year ago

You can convert native address from base58 to hex