Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
fixed: contract name and _process decodeu32
Browse files Browse the repository at this point in the history
  • Loading branch information
tansawit authored and sorawit committed Oct 1, 2020
1 parent 286f219 commit 58f0885
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bridges/evm/contracts/stdref/StdReference.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {IStdReference} from "./IStdReference.sol";
import {IBridge} from "../interfaces/IBridge.sol";
import {Obi} from "../obi/Obi.sol";

contract StdReferenceProxy is Ownable, IStdReference {
contract StdReference is Ownable, IStdReference {
using Obi for Obi.Data;

struct RefData {
Expand Down Expand Up @@ -84,8 +84,8 @@ contract StdReferenceProxy is Ownable, IStdReference {
// TODO: Check response status
Obi.Data memory reqData = Obi.from(_req.params);
Obi.Data memory resData = Obi.from(_res.result);
uint256 symbolLen = uint256(reqData.decodeU64());
uint256 rateLen = uint256(resData.decodeU64());
uint256 symbolLen = uint256(reqData.decodeU32());
uint256 rateLen = uint256(resData.decodeU32());
require(symbolLen == rateLen, "INCONSISTENT_REQ_RES");
for (uint256 idx = 0; idx < symbolLen; idx++) {
string memory symbol = reqData.decodeString();
Expand Down

0 comments on commit 58f0885

Please sign in to comment.