Skip to content

Commit

Permalink
update contract v4_2
Browse files Browse the repository at this point in the history
  • Loading branch information
hvthhien committed May 23, 2024
1 parent eb278ea commit ebcc12b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
8 changes: 8 additions & 0 deletions contracts/feralfile-exhibition-v4/feralfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,12 @@ func (c *FeralfileExhibitionV4Contract) Call(
}

return contract.SetAdvanceSetting(t, params[0].([]common.Address), params[1].([]*big.Int))
case "updateTokenInformation":
if len(params) != 3 {
return nil, errors.New("Invalid parameters")
}

return contract.UpdateTokenInformation(t, params[0].(*big.Int), params[1].(string), params[2].([]byte))
default:
return nil, fmt.Errorf("unsupported method")
}
Expand Down Expand Up @@ -383,6 +389,8 @@ func (c *FeralfileExhibitionV4Contract) Parse(
}

return []interface{}{params.AdvanceAddresses, advanceAmounts}, nil
case "updateTokenInformation":
return []interface{}{}, nil
default:
return nil, fmt.Errorf("unsupported method")
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/bitmark-inc/account-vault-ethereum
go 1.20

require (
github.com/bitmark-inc/feralfile-exhibition-smart-contract/go-binding v0.0.0-20240420161158-7827629e2797
github.com/bitmark-inc/feralfile-exhibition-smart-contract/go-binding v0.0.0-20240523090831-3bbdf4f223a1
github.com/ethereum/go-ethereum v1.13.10
github.com/miguelmota/go-ethereum-hdwallet v0.1.1
github.com/stretchr/testify v1.8.4
Expand Down
6 changes: 4 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ github.com/aws/smithy-go v1.1.0/go.mod h1:EzMw8dbp/YJL4A5/sbhGddag+NPT7q084agLbB
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
github.com/bitmark-inc/feralfile-exhibition-smart-contract/go-binding v0.0.0-20240420161158-7827629e2797 h1:avNsve02bxwzXzHGbvxrd78MYSdRJmnVwj50HsqZQCc=
github.com/bitmark-inc/feralfile-exhibition-smart-contract/go-binding v0.0.0-20240420161158-7827629e2797/go.mod h1:shvtsuJyQJnByXKqf9n/jpjL4++FSJCFjXR/08iBnFY=
github.com/bitmark-inc/feralfile-exhibition-smart-contract/go-binding v0.0.0-20240523083611-11a8480de376 h1:+Whj98ezo1eSt8OWl7qnWNIKdp2Xd5zWAEw+hS1wUhk=
github.com/bitmark-inc/feralfile-exhibition-smart-contract/go-binding v0.0.0-20240523083611-11a8480de376/go.mod h1:shvtsuJyQJnByXKqf9n/jpjL4++FSJCFjXR/08iBnFY=
github.com/bitmark-inc/feralfile-exhibition-smart-contract/go-binding v0.0.0-20240523090831-3bbdf4f223a1 h1:DDUWcIvqkpMPCvJqUskpPCmbY1kdfNysjjU18zRym40=
github.com/bitmark-inc/feralfile-exhibition-smart-contract/go-binding v0.0.0-20240523090831-3bbdf4f223a1/go.mod h1:shvtsuJyQJnByXKqf9n/jpjL4++FSJCFjXR/08iBnFY=
github.com/bits-and-blooms/bitset v1.10.0 h1:ePXTeiPEazB5+opbv5fr8umg2R/1NlzgDsyepwsSr88=
github.com/bits-and-blooms/bitset v1.10.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=
github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40/go.mod h1:8rLXio+WjiTceGBHIoTvn60HIbs7Hm7bcHjyrSqYB9c=
Expand Down

0 comments on commit ebcc12b

Please sign in to comment.