Skip to content

Commit 245f7ba

Browse files
committed
feat(): upgrade ttcrsa
1 parent e7ebfe0 commit 245f7ba

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

wallet_test.go

+16-18
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ package goar
22

33
import (
44
"encoding/base64"
5-
"github.com/everFinance/goar/types"
6-
"io/ioutil"
75
"testing"
86

97
"github.com/stretchr/testify/assert"
@@ -80,20 +78,20 @@ func TestWallet_SendDataSpeedUp01(t *testing.T) {
8078

8179
// test send big size file
8280
func TestWallet_SendDataSpeedUp02(t *testing.T) {
83-
proxyUrl := "http://127.0.0.1:8001"
84-
arNode := "https://arweave.net"
85-
w, err := NewWalletFromPath("./wallet/account1.json", arNode, proxyUrl) // your wallet private key
86-
assert.NoError(t, err)
87-
88-
data, err := ioutil.ReadFile("/Users/sandyzhou/Downloads/abc.jpeg")
89-
if err != nil {
90-
panic(err)
91-
}
92-
tags := []types.Tag{
93-
{Name: "Sender", Value: "Jie"},
94-
{Name: "Data-Introduce", Value: "Happy anniversary, my google and dearest! I‘m so grateful to have you in my life. I love you to infinity and beyond! (⁎⁍̴̛ᴗ⁍̴̛⁎)"},
95-
}
96-
id, err := w.SendDataSpeedUp(data, tags, 10)
97-
assert.NoError(t, err)
98-
t.Logf("tx hash: %s", id)
81+
// proxyUrl := "http://127.0.0.1:8001"
82+
// arNode := "https://arweave.net"
83+
// w, err := NewWalletFromPath("./wallet/account1.json", arNode, proxyUrl) // your wallet private key
84+
// assert.NoError(t, err)
85+
//
86+
// data, err := ioutil.ReadFile("/Users/sandyzhou/Downloads/abc.jpeg")
87+
// if err != nil {
88+
// panic(err)
89+
// }
90+
// tags := []types.Tag{
91+
// {Name: "Sender", Value: "Jie"},
92+
// {Name: "Data-Introduce", Value: "Happy anniversary, my google and dearest! I‘m so grateful to have you in my life. I love you to infinity and beyond! (⁎⁍̴̛ᴗ⁍̴̛⁎)"},
93+
// }
94+
// id, err := w.SendDataSpeedUp(data, tags, 10)
95+
// assert.NoError(t, err)
96+
// t.Logf("tx hash: %s", id)
9997
}

0 commit comments

Comments
 (0)