From 923903d9f53abba868700487473123703b3a49c0 Mon Sep 17 00:00:00 2001 From: Laurent Le Houerou Date: Tue, 9 Nov 2021 13:23:41 +0400 Subject: [PATCH] wip --- pancakeswap/nftmarket.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pancakeswap/nftmarket.go b/pancakeswap/nftmarket.go index ed4f332..8954b63 100644 --- a/pancakeswap/nftmarket.go +++ b/pancakeswap/nftmarket.go @@ -72,3 +72,9 @@ func (m *NftMarket) CreateAskOrder(ctx context.Context, collection common.Addres return m.contract.CreateAskOrder(opts.TransactOpts, collection, big.NewInt(int64(tokenid)), m.wbnb.ValueToBigInt(price)) }, opts...) } + +func (m *NftMarket) ModifyAskOrder(ctx context.Context, collection common.Address, tokenid int, price decimal.Decimal, opts ...evm.ExecutionOption) (evm.Transaction, error) { + return m.client.Execute(ctx, func(ctx context.Context, opts *evm.TransactOpts) (*types.Transaction, error) { + return m.contract.ModifyAskOrder(opts.TransactOpts, collection, big.NewInt(int64(tokenid)), m.wbnb.ValueToBigInt(price)) + }, opts...) +}