0chain / gosdk

A client SDK in Go to interface the blockchain and storage platform, and other smart contracts
MIT License
32 stars 29 forks source link

Ethereum bridge mint must take ClientID as argument #506

Closed Dmdv closed 2 years ago

Dmdv commented 2 years ago

Fixed in https://github.com/0chain/gosdk/pull/505

Linked update on the smart contract

https://github.com/0chain/token_bridge_SC/blob/master/contracts/Bridge.sol#L74

image

Previous implementation of nonce tracking

    mapping(uint256) private userNonceMinted;

Current implementation of nonce tracking

    // Mapping client -> nonce when minted where the nonce is the burn nonce in ZCN
    mapping(bytes => uint256) private userNonceMinted;
Dmdv commented 2 years ago

Fixed and merged